|
11 | 11 | "type": "opencollective", |
12 | 12 | "url": "https://opencollective.com/webpack" |
13 | 13 | }, |
14 | | - "main": "dist/cjs.js", |
15 | | - "types": "types/cjs.d.ts", |
| 14 | + "main": "dist/index.js", |
| 15 | + "types": "types/index.d.ts", |
16 | 16 | "engines": { |
17 | 17 | "node": ">= 12.13.0" |
18 | 18 | }, |
19 | 19 | "scripts": { |
20 | 20 | "commitlint": "commitlint --from=master", |
| 21 | + "security": "npm audit --production", |
21 | 22 | "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different", |
22 | 23 | "lint:js": "eslint --cache src test", |
23 | 24 | "lint:types": "tsc --pretty --noEmit", |
24 | 25 | "lint": "npm-run-all lint:js fmt:check", |
25 | 26 | "fmt": "npm run fmt:check -- --write", |
26 | 27 | "fix:js": "npm run lint:js -- --fix", |
27 | 28 | "fix": "npm-run-all fix:js fmt", |
28 | | - "prepare": "husky install && npm run build", |
| 29 | + "clean": "del-cli dist types", |
| 30 | + "prebuild": "npm run clean", |
29 | 31 | "build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write", |
30 | 32 | "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", |
31 | 33 | "build": "npm-run-all -p \"build:**\"", |
32 | | - "release": "standard-version", |
33 | | - "security": "npm audit --production", |
34 | 34 | "test:only": "cross-env NODE_ENV=test jest", |
35 | 35 | "test:watch": "npm run test:only -- --watch", |
36 | 36 | "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", |
37 | 37 | "pretest": "npm run lint", |
38 | | - "test": "npm run test:coverage" |
| 38 | + "test": "npm run test:coverage", |
| 39 | + "prepare": "husky install && npm run build", |
| 40 | + "release": "standard-version" |
39 | 41 | }, |
40 | 42 | "files": [ |
41 | 43 | "dist", |
|
0 commit comments