|
10 | 10 | "scripts": { |
11 | 11 | "clean": "rimraf coverage dist", |
12 | 12 | "build": "rollup -c", |
13 | | - "lint": "eslint src tests", |
| 13 | + "lint": "eslint *.js", |
| 14 | + "format": "prettier --write .", |
| 15 | + "lint:staged": "lint-staged", |
14 | 16 | "postpublish": "yarn clean", |
15 | 17 | "prepublishOnly": "yarn lint && yarn test && yarn clean && yarn build", |
16 | | - "test": "jest" |
| 18 | + "test": "jest", |
| 19 | + "postinstall": "is-ci || husky install" |
17 | 20 | }, |
18 | 21 | "dependencies": { |
19 | | - "@types/fs-extra": "^8.0.1", |
20 | | - "colorette": "^1.1.0", |
21 | | - "fs-extra": "^9.0.0", |
22 | | - "globby": "10.0.1", |
23 | | - "is-plain-object": "^3.0.0" |
| 22 | + "@types/fs-extra": "^9.0.13", |
| 23 | + "colorette": "^2.0.17", |
| 24 | + "fs-extra": "^10.1.0", |
| 25 | + "globby": "13.1.1", |
| 26 | + "is-plain-object": "^5.0.0" |
24 | 27 | }, |
25 | 28 | "devDependencies": { |
26 | 29 | "@babel/core": "^7.8.3", |
27 | 30 | "@babel/preset-env": "^7.8.3", |
28 | | - "babel-jest": "^24.9.0", |
| 31 | + "@rollup/plugin-babel": "^5.3.1", |
| 32 | + "babel-jest": "^28.1.0", |
29 | 33 | "codecov": "^3.6.1", |
30 | | - "eslint": "^7.15.0", |
31 | | - "eslint-config-airbnb-base": "^14.2.1", |
32 | | - "eslint-config-prettier": "^7.0.0", |
| 34 | + "eslint": "^8.17.0", |
| 35 | + "eslint-config-airbnb-base": "^15.0.0", |
| 36 | + "eslint-config-prettier": "^8.5.0", |
33 | 37 | "eslint-plugin-import": "^2.22.1", |
34 | | - "eslint-plugin-prettier": "^3.3.0", |
35 | | - "husky": "^4.3.6", |
36 | | - "jest": "^24.9.0", |
37 | | - "lint-staged": "^10.5.3", |
| 38 | + "eslint-plugin-prettier": "^4.0.0", |
| 39 | + "husky": "^8.0.0", |
| 40 | + "is-ci": "^3.0.1", |
| 41 | + "jest": "^28.1.0", |
| 42 | + "lint-staged": "^13.0.0", |
38 | 43 | "prettier": "^2.2.1", |
39 | | - "replace-in-file": "^5.0.2", |
| 44 | + "replace-in-file": "^6.3.5", |
40 | 45 | "rimraf": "^3.0.0", |
41 | | - "rollup": "^1.29.0", |
| 46 | + "rollup": "^2.75.5", |
42 | 47 | "rollup-plugin-auto-external": "^2.0.0", |
43 | | - "rollup-plugin-babel": "^4.3.3", |
44 | 48 | "rollup-plugin-includepaths": "^0.2.4" |
45 | 49 | }, |
46 | 50 | "files": [ |
47 | 51 | "dist", |
48 | 52 | "index.d.ts", |
49 | 53 | "readme.md" |
50 | 54 | ], |
51 | | - "husky": { |
52 | | - "hooks": { |
53 | | - "pre-commit": "lint-staged" |
54 | | - } |
55 | | - }, |
56 | | - "lint-staged": { |
57 | | - "*.{js,ts,tsx}": [ |
58 | | - "eslint --quiet --fix" |
59 | | - ], |
60 | | - "*.{json,md,html}": [ |
61 | | - "prettier --write" |
62 | | - ] |
63 | | - }, |
64 | 55 | "engines": { |
65 | | - "node": ">=10.12" |
| 56 | + "node": ">=14" |
66 | 57 | }, |
67 | 58 | "keywords": [ |
68 | 59 | "rollup", |
|
0 commit comments