|
18 | 18 | "build": "cross-env NODE_ENV=production babel src --out-dir lib --copy-files --source-maps",
|
19 | 19 | "watch": "babel src --out-dir lib --watch --source-maps",
|
20 | 20 | "prepublish": "npm run --if-present build",
|
21 |
| - "prettier": "prettier --write '**/*.{js,jsx,ts,tsx,css}'", |
22 |
| - "precommit": "lint-staged", |
23 |
| - "postcommit": "git reset" |
| 21 | + "prettier": "prettier --write '**/*.{js,jsx,ts,tsx,css}'" |
24 | 22 | },
|
25 | 23 | "keywords": [
|
26 | 24 | "rc",
|
|
49 | 47 | "require-from-string": "^2.0.2"
|
50 | 48 | },
|
51 | 49 | "devDependencies": {
|
52 |
| - "babel-cli": "^6.22.2", |
53 |
| - "babel-preset-jsdoc-to-assert": "^4.0.0", |
54 |
| - "babel-preset-latest": "^6.22.0", |
55 |
| - "babel-preset-power-assert": "^1.0.0", |
56 |
| - "babel-register": "^6.22.0", |
57 |
| - "chai": "^3.5.0", |
58 |
| - "cross-env": "^3.1.4", |
59 |
| - "eslint": "^3.15.0", |
60 |
| - "husky": "^0.14.3", |
61 |
| - "lint-staged": "^5.0.0", |
62 |
| - "mocha": "^3.2.0", |
| 50 | + "@babel/cli": "^7.0.0", |
| 51 | + "@babel/core": "^7.0.0", |
| 52 | + "@babel/preset-env": "^7.0.0", |
| 53 | + "@babel/register": "^7.0.0", |
| 54 | + "babel-preset-jsdoc-to-assert": "^5.0.0", |
| 55 | + "babel-preset-power-assert": "^3.0.0", |
| 56 | + "chai": "^4.2.0", |
| 57 | + "cross-env": "^5.2.0", |
| 58 | + "eslint": "^6.0.1", |
| 59 | + "husky": "^3.0.0", |
| 60 | + "lint-staged": "^9.1.0", |
| 61 | + "mocha": "^6.1.4", |
63 | 62 | "power-assert": "^1.4.2",
|
64 | 63 | "prettier": "^1.8.2"
|
65 | 64 | },
|
|
72 | 71 | "prettier --write",
|
73 | 72 | "git add"
|
74 | 73 | ]
|
| 74 | + }, |
| 75 | + "husky": { |
| 76 | + "hooks": { |
| 77 | + "post-commit": "git reset", |
| 78 | + "pre-commit": "lint-staged" |
| 79 | + } |
75 | 80 | }
|
76 | 81 | }
|
0 commit comments