|
12 | 12 | "url": "https://opencollective.com/webpack"
|
13 | 13 | },
|
14 | 14 | "main": "dist/cjs.js",
|
| 15 | + "types": "types/cjs.d.ts", |
15 | 16 | "engines": {
|
16 | 17 | "node": ">= 12.20.0"
|
17 | 18 | },
|
18 | 19 | "scripts": {
|
19 | 20 | "start": "npm run build -- -w",
|
20 | 21 | "clean": "del-cli dist",
|
21 | 22 | "prebuild": "npm run clean",
|
22 |
| - "build": "cross-env NODE_ENV=production babel src -d dist --copy-files", |
| 23 | + "build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write && prettier types --write", |
| 24 | + "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", |
| 25 | + "build": "npm-run-all -p \"build:**\"", |
23 | 26 | "commitlint": "commitlint --from=master",
|
24 | 27 | "security": "npm audit --production",
|
25 | 28 | "lint:prettier": "prettier --list-different .",
|
26 | 29 | "lint:js": "eslint --cache .",
|
| 30 | + "lint:types": "tsc --pretty --noEmit", |
27 | 31 | "lint": "npm-run-all -l -p \"lint:**\"",
|
28 | 32 | "test:only": "cross-env NODE_ENV=test jest",
|
29 | 33 | "test:watch": "npm run test:only -- --watch",
|
|
54 | 58 | "@babel/preset-env": "^7.15.0",
|
55 | 59 | "@commitlint/cli": "^15.0.0",
|
56 | 60 | "@commitlint/config-conventional": "^15.0.0",
|
| 61 | + "@types/glob-parent": "^5.1.1", |
| 62 | + "@types/normalize-path": "^3.0.0", |
| 63 | + "@types/serialize-javascript": "^5.0.1", |
57 | 64 | "@webpack-contrib/eslint-config-webpack": "^3.0.0",
|
58 | 65 | "babel-jest": "^27.0.6",
|
59 | 66 | "cross-env": "^7.0.3",
|
|
72 | 79 | "npm-run-all": "^4.1.5",
|
73 | 80 | "prettier": "^2.3.2",
|
74 | 81 | "standard-version": "^9.3.1",
|
| 82 | + "typescript": "^4.5.2", |
75 | 83 | "webpack": "^5.64.1"
|
76 | 84 | },
|
77 | 85 | "keywords": [
|
|
0 commit comments