|
6 | 6 | "lib/", |
7 | 7 | "index.d.ts" |
8 | 8 | ], |
9 | | - "main": "lib/index.js", |
| 9 | + "main": "src/index.js", |
10 | 10 | "scripts": { |
11 | | - "clean": "del-cli lib/ coverage/ example/*/build example/*/dist", |
12 | | - "prebuild": "npm run clean", |
13 | | - "build": "babel src/ --out-dir lib/", |
14 | | - "postbuild": "prettier lib/* --write", |
15 | | - "cover": "jest --coverage", |
16 | | - "preexample": "npm run clean && npm run build", |
17 | | - "example": "npm run example:dll && npm run example:polyfill", |
| 11 | + "clean": "del-cli lib/ coverage/ \"example/*/build\" \"example/*/dist\"", |
| 12 | + "cover": "yarn run test --coverage", |
| 13 | + "example": "yarn run clean && yarn run example:dll && yarn run example:polyfill", |
18 | 14 | "example:dll": "webpack --config example/dll/webpack.config.dll.js && webpack --config example/dll/webpack.config.js", |
19 | 15 | "example:polyfill": "webpack --config example/polyfill/webpack.config.js", |
20 | 16 | "lint": "eslint --cache .", |
21 | 17 | "update-license": "licensor --width 72", |
22 | | - "build-and-update-license": "npm run build && npm run update-license", |
23 | | - "prepare": "npm run build", |
24 | | - "pretest": "npm run example", |
25 | | - "test": "jest" |
| 18 | + "build-and-update-license": "yarn run update-license", |
| 19 | + "test": "jest", |
| 20 | + "postinstall": "husky install", |
| 21 | + "prepack": "pinst --disable", |
| 22 | + "postpack": "pinst --enable" |
26 | 23 | }, |
27 | 24 | "repository": "SimenB/add-asset-html-webpack-plugin", |
28 | 25 | "keywords": [ |
|
37 | 34 | }, |
38 | 35 | "homepage": "https://github.com/SimenB/add-asset-html-webpack-plugin#readme", |
39 | 36 | "dependencies": { |
40 | | - "globby": "^9.0.0", |
41 | | - "micromatch": "^3.1.3", |
42 | | - "p-each-series": "^1.0.0" |
| 37 | + "globby": "^9.2.0", |
| 38 | + "micromatch": "^4.0.4" |
43 | 39 | }, |
44 | 40 | "devDependencies": { |
45 | | - "@babel/cli": "^7.0.0", |
46 | | - "@babel/core": "^7.0.1", |
47 | | - "@babel/plugin-transform-modules-commonjs": "^7.0.0", |
48 | | - "@babel/preset-env": "^7.0.0", |
49 | | - "babel-jest": "^24.0.0", |
50 | | - "babel-plugin-add-module-exports": "^1.0.0", |
51 | 41 | "classnames": "^2.2.5", |
52 | | - "del-cli": "^1.1.0", |
53 | | - "eslint": "^5.6.0", |
| 42 | + "del-cli": "^4.0.1", |
| 43 | + "eslint": "^8.10.0", |
54 | 44 | "eslint-config-simenb-base": "^15.0.1", |
55 | | - "eslint_d": "^7.1.0", |
56 | 45 | "express": "^4.17.1", |
57 | | - "html-webpack-plugin": "^4.0.0", |
58 | | - "husky": "^1.0.1", |
59 | | - "jest": "^24.0.0", |
60 | | - "jest-watch-typeahead": "^0.2.0", |
| 46 | + "html-webpack-plugin": "^5.2.0", |
| 47 | + "husky": "^7.0.0", |
| 48 | + "jest": "^27.0.0", |
| 49 | + "jest-watch-typeahead": "^1.0.0", |
61 | 50 | "licensor": "^4.0.0", |
62 | | - "lint-staged": "^7.0.0", |
63 | | - "prettier": "^1.8.2", |
64 | | - "slash": "^2.0.0", |
| 51 | + "lint-staged": "^12.3.5", |
| 52 | + "pinst": "^3.0.0", |
| 53 | + "prettier": "^2.2.1", |
| 54 | + "puppeteer": "^13.5.0", |
| 55 | + "semantic-release": "^19.0.2", |
| 56 | + "slash": "^3.0.0", |
65 | 57 | "stoppable": "^1.1.0", |
66 | | - "webpack": "^4.0.0", |
67 | | - "webpack-cli": "^3.1.0" |
| 58 | + "webpack": "^5.23.0", |
| 59 | + "webpack-cli": "^4.5.0" |
68 | 60 | }, |
69 | 61 | "peerDependencies": { |
70 | 62 | "html-webpack-plugin": "^3.0.4 || ^4.0.0-0 || ^5.0.0", |
71 | 63 | "webpack": "^4.0.0 || ^5.0.0" |
72 | 64 | }, |
73 | 65 | "engines": { |
74 | | - "node": ">=6" |
| 66 | + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" |
75 | 67 | }, |
76 | 68 | "jest": { |
77 | 69 | "testEnvironment": "node", |
|
83 | 75 | "statements": 100 |
84 | 76 | } |
85 | 77 | }, |
| 78 | + "transform": {}, |
86 | 79 | "watchPlugins": [ |
87 | 80 | "jest-watch-typeahead/filename", |
88 | 81 | "jest-watch-typeahead/testname" |
89 | 82 | ] |
90 | 83 | }, |
91 | 84 | "lint-staged": { |
92 | | - "*.js": [ |
93 | | - "eslint --fix --cache", |
94 | | - "git add" |
95 | | - ], |
96 | | - "*.{md,json,ts}": [ |
97 | | - "prettier --write", |
98 | | - "git add" |
99 | | - ], |
100 | | - ".{eslintrc,babelrc}": [ |
101 | | - "prettier --write", |
102 | | - "git add" |
103 | | - ] |
| 85 | + "*.{js,ts}": "eslint --fix --cache", |
| 86 | + "*.{md,json}": "prettier --write", |
| 87 | + ".eslintrc": "prettier --write" |
104 | 88 | }, |
105 | 89 | "prettier": { |
106 | 90 | "singleQuote": true, |
| 91 | + "arrowParens": "avoid", |
107 | 92 | "trailingComma": "all", |
108 | 93 | "proseWrap": "always", |
109 | 94 | "overrides": [ |
110 | 95 | { |
111 | | - "files": [ |
112 | | - ".eslintrc", |
113 | | - ".babelrc" |
114 | | - ], |
| 96 | + "files": ".eslintrc", |
115 | 97 | "options": { |
116 | 98 | "parser": "json" |
117 | 99 | } |
|
130 | 112 | } |
131 | 113 | ] |
132 | 114 | }, |
133 | | - "husky": { |
134 | | - "hooks": { |
135 | | - "pre-commit": "lint-staged" |
136 | | - } |
137 | | - }, |
138 | 115 | "release": { |
139 | 116 | "branches": [ |
140 | 117 | "main" |
141 | 118 | ] |
142 | 119 | }, |
143 | 120 | "resolutions": { |
144 | | - "**/@types/webpack-sources/source-map": "0.6.1", |
145 | | - "anymatch": "^2.0.0", |
146 | | - "merge2": "~1.2.3", |
147 | | - "stack-utils": "1.0.2" |
148 | | - } |
| 121 | + "@semantic-release/npm/npm": "7.20.6" |
| 122 | + }, |
| 123 | + "packageManager": "yarn@3.2.0" |
149 | 124 | } |
0 commit comments