|
22 | 22 | "files": [ |
23 | 23 | "dist" |
24 | 24 | ], |
25 | | - "main": "dist/index.js", |
| 25 | + "main": "./dist/index.cjs", |
| 26 | + "types": "./dist/index.d.ts", |
| 27 | + "imports": { |
| 28 | + "#webpack-localize-assets-plugin": { |
| 29 | + "types": "./src/index.d.ts", |
| 30 | + "development": "./src/index.ts", |
| 31 | + "default": "./dist/index.cjs" |
| 32 | + }, |
| 33 | + "webpack": { |
| 34 | + "webpack5": "webpack5", |
| 35 | + "default": "webpack" |
| 36 | + }, |
| 37 | + "webpack/*": { |
| 38 | + "webpack5": "webpack5/*", |
| 39 | + "default": "webpack/*" |
| 40 | + } |
| 41 | + }, |
26 | 42 | "scripts": { |
| 43 | + "prepare": "simple-git-hooks", |
27 | 44 | "lint": "eslint .", |
28 | | - "build": "tsc", |
29 | | - "typecheck": "tsc --noEmit", |
30 | | - "pretest": "npm run build", |
31 | | - "test": "npm run test:wp4 && npm run test:wp5", |
32 | | - "test:wp4": "jest", |
33 | | - "test:wp5": "WEBPACK=5 jest" |
| 45 | + "build": "pkgroll --target node12.20 --minify", |
| 46 | + "type-check": "tsc --noEmit", |
| 47 | + "dev": "tsx watch --loader alias-imports -C development -C webpack5 tests", |
| 48 | + "test": "pnpm test:wp4 && pnpm test:wp5", |
| 49 | + "test:wp4": "tsx --loader alias-imports tests", |
| 50 | + "test:wp5": "tsx --loader alias-imports --conditions webpack5 tests" |
34 | 51 | }, |
35 | | - "husky": { |
36 | | - "hooks": { |
37 | | - "pre-commit": "npm run build && lint-staged && npm test" |
38 | | - } |
| 52 | + "simple-git-hooks": { |
| 53 | + "pre-commit": "pnpm build && pnpm lint-staged && pnpm test" |
39 | 54 | }, |
40 | 55 | "lint-staged": { |
41 | 56 | "*.{js,ts}": "eslint" |
|
46 | 61 | "dependencies": { |
47 | 62 | "@types/estree": "^0.0.50", |
48 | 63 | "acorn": "^8.6.0", |
49 | | - "astring": "^1.8.1", |
| 64 | + "astring": "^1.8.3", |
50 | 65 | "has-own-prop": "^2.0.0", |
51 | | - "magic-string": "^0.25.7", |
| 66 | + "magic-string": "^0.27.0", |
52 | 67 | "source-map": "^0.7.3", |
53 | 68 | "webpack-sources": "^2.2.0" |
54 | 69 | }, |
55 | 70 | "devDependencies": { |
56 | | - "@pvtnbr/eslint-config": "^0.6.1", |
| 71 | + "@pvtnbr/eslint-config": "^0.33.0", |
57 | 72 | "@types/estree": "^0.0.50", |
58 | | - "@types/jest": "^27.0.3", |
59 | 73 | "@types/mini-css-extract-plugin": "^2.4.0", |
60 | 74 | "@types/webpack": "^4.41.32", |
61 | 75 | "@types/webpack-manifest-plugin": "^3.0.5", |
| 76 | + "@types/webpack-sources": "^3.2.0", |
| 77 | + "alias-imports": "^1.0.0", |
62 | 78 | "css-loader": "^5.2.4", |
63 | | - "es-jest": "^1.5.0", |
64 | | - "eslint": "^7.32.0", |
65 | | - "husky": "^4.3.8", |
66 | | - "jest": "^27.3.1", |
| 79 | + "eslint": "^8.28.0", |
67 | 80 | "lint-staged": "^12.1.2", |
| 81 | + "manten": "^0.6.0", |
68 | 82 | "mini-css-extract-plugin": "^1.6.0", |
| 83 | + "pkgroll": "^1.5.0", |
| 84 | + "simple-git-hooks": "^2.8.0", |
69 | 85 | "tempy": "^1.0.1", |
70 | | - "typescript": "^4.5.2", |
| 86 | + "terser-webpack-plugin": "^5.3.6", |
| 87 | + "tsx": "^3.12.1", |
| 88 | + "typescript": "^4.9.3", |
71 | 89 | "webpack": "4.42.0", |
72 | 90 | "webpack-manifest-plugin": "^3.1.1", |
73 | | - "webpack-test-utils": "^1.1.0", |
| 91 | + "webpack-test-utils": "^2.1.0", |
74 | 92 | "webpack5": "npm:[email protected]" |
75 | 93 | }, |
76 | 94 | "eslintConfig": { |
77 | 95 | "extends": "@pvtnbr" |
| 96 | + }, |
| 97 | + "pnpm": { |
| 98 | + "patchedDependencies": { |
| 99 | + |
| 100 | + } |
78 | 101 | } |
79 | 102 | } |
0 commit comments