|
19 | 19 | "lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:js",
|
20 | 20 | "lint-staged": "lint-staged",
|
21 | 21 | "lint:docs": "prettier --write README.md",
|
22 |
| - "lint:js": "eslint --cache --fix --cache scripts src test", |
| 22 | + "lint:js": "eslint --cache --fix --cache src test", |
23 | 23 | "lint:json": "prettier --write codecov.yml package.json",
|
24 |
| - "posttest": "pnpm switch -- \"4\" && pnpm install", |
25 | 24 | "prepublishOnly": "pnpm lint && pnpm build",
|
26 | 25 | "pretest": "pnpm build",
|
27 | 26 | "security": "pnpm audit --audit-level=high --prod",
|
28 |
| - "switch": "cd scripts && ts-node --project ./tsconfig.json ./set-webpack-version.ts", |
29 |
| - "test": "pnpm test:v4 && pnpm test:v5", |
30 |
| - "test:v4": "ava", |
31 |
| - "test:v5": "pnpm switch -- \"5\" && pnpm install && ava" |
| 27 | + "test": "pnpm install && ava" |
32 | 28 | },
|
33 | 29 | "files": [
|
34 | 30 | "dist",
|
35 | 31 | "README.md",
|
36 | 32 | "LICENSE"
|
37 | 33 | ],
|
38 | 34 | "peerDependencies": {
|
39 |
| - "webpack": "^4.44.2 || ^5.47.0" |
| 35 | + "webpack": "^5.47.0" |
40 | 36 | },
|
41 | 37 | "dependencies": {
|
42 | 38 | "tapable": "^2.0.0",
|
|
48 | 44 | "@commitlint/config-conventional": "^13.1.0",
|
49 | 45 | "@svgr/webpack": "^5.4.0",
|
50 | 46 | "@types/node": "^16.4.3",
|
51 |
| - "@types/webpack": "^4.41.26", |
| 47 | + "@types/webpack": "^5.28.0", |
52 | 48 | "@types/webpack-sources": "^2.1.1",
|
53 | 49 | "@wordpress/dependency-extraction-webpack-plugin": "^3.1.0",
|
54 | 50 | "ava": "^3.13.0",
|
55 | 51 | "codecov": "^3.1.0",
|
56 | 52 | "copy-webpack-plugin": "^6.2.1",
|
57 |
| - "css-loader": "^1.0.0", |
58 | 53 | "del": "^6.0.0",
|
59 | 54 | "eslint-config-shellscape": "^4.2.0",
|
60 |
| - "extract-text-webpack-plugin": "^3.0.2", |
61 |
| - "file-loader": "^2.0.0", |
| 55 | + "file-loader": "^6.2.0", |
62 | 56 | "husky": "4.3.8",
|
63 | 57 | "lint-staged": "11.1.1",
|
64 | 58 | "memory-fs": "^0.4.1",
|
|
71 | 65 | "ts-node": "^10.1.0",
|
72 | 66 | "tslib": "^2.3.0",
|
73 | 67 | "typescript": "^4.3.5",
|
74 |
| - "webpack": "^4.44.2", |
| 68 | + "webpack": "^5.47.0", |
75 | 69 | "webpack-merge": "^5.2.0"
|
76 | 70 | },
|
77 | 71 | "ava": {
|
|
107 | 101 | "test/"
|
108 | 102 | ]
|
109 | 103 | },
|
110 |
| - "pre-commit": "lint-staged", |
111 |
| - "webpack-versions": { |
112 |
| - "4": { |
113 |
| - "webpack": "^4.44.2", |
114 |
| - "@types/webpack": "^4.41.26" |
115 |
| - }, |
116 |
| - "5": { |
117 |
| - "webpack": "latest", |
118 |
| - "@types/webpack": "latest" |
119 |
| - } |
120 |
| - } |
| 104 | + "pre-commit": "lint-staged" |
121 | 105 | }
|
0 commit comments