|
1 | 1 | {
|
2 | 2 | "name": "icss-utils",
|
3 |
| - "version": "4.0.0", |
| 3 | + "version": "4.1.0", |
4 | 4 | "description": "ICSS utils for postcss ast",
|
5 | 5 | "main": "lib/index.js",
|
6 | 6 | "engines": {
|
|
10 | 10 | "lib"
|
11 | 11 | ],
|
12 | 12 | "scripts": {
|
| 13 | + "lint": "eslint . --ignore-path .gitignore", |
13 | 14 | "build": "babel --out-dir lib src",
|
14 |
| - "test": "jest --coverage", |
15 |
| - "precommit": "lint-staged", |
| 15 | + "pretest": "npm run lint", |
| 16 | + "test": "npm run test:only", |
| 17 | + "test:only": "jest", |
16 | 18 | "prepublish": "yarn test && yarn run build"
|
17 | 19 | },
|
18 |
| - "lint-staged": { |
19 |
| - "*.js": [ |
20 |
| - "prettier --write", |
21 |
| - "eslint", |
22 |
| - "git add" |
| 20 | + "babel": { |
| 21 | + "presets": [ |
| 22 | + [ |
| 23 | + "@babel/preset-env", |
| 24 | + { |
| 25 | + "targets": { |
| 26 | + "node": 6 |
| 27 | + } |
| 28 | + } |
| 29 | + ] |
23 | 30 | ]
|
24 | 31 | },
|
25 | 32 | "eslintConfig": {
|
| 33 | + "parser": "babel-eslint", |
26 | 34 | "parserOptions": {
|
27 | 35 | "sourceType": "module"
|
28 | 36 | },
|
29 | 37 | "env": {
|
30 |
| - "es6": true |
| 38 | + "es6": true, |
| 39 | + "jest": true |
31 | 40 | },
|
32 | 41 | "extends": "eslint:recommended"
|
33 | 42 | },
|
34 |
| - "babel": { |
35 |
| - "presets": [ |
36 |
| - [ |
37 |
| - "env", |
38 |
| - { |
39 |
| - "targets": { |
40 |
| - "node": 6 |
41 |
| - } |
42 |
| - } |
43 |
| - ] |
| 43 | + "lint-staged": { |
| 44 | + "*.js": [ |
| 45 | + "prettier --write", |
| 46 | + "eslint", |
| 47 | + "git add" |
44 | 48 | ]
|
45 | 49 | },
|
| 50 | + "husky": { |
| 51 | + "hooks": { |
| 52 | + "pre-commit": "lint-staged" |
| 53 | + } |
| 54 | + }, |
46 | 55 | "repository": {
|
47 | 56 | "type": "git",
|
48 | 57 | "url": "git+https://github.com/css-modules/icss-utils.git"
|
|
60 | 69 | },
|
61 | 70 | "homepage": "https://github.com/css-modules/icss-utils#readme",
|
62 | 71 | "dependencies": {
|
63 |
| - "postcss": "^7.0.5" |
| 72 | + "postcss": "^7.0.14" |
64 | 73 | },
|
65 | 74 | "devDependencies": {
|
66 |
| - "babel-cli": "^6.24.1", |
67 |
| - "babel-jest": "^20.0.3", |
68 |
| - "babel-preset-env": "^1.5.2", |
69 |
| - "eslint": "^4.0.0", |
70 |
| - "husky": "^0.13.4", |
71 |
| - "jest": "^20.0.4", |
72 |
| - "lint-staged": "^3.6.1", |
73 |
| - "prettier": "^1.4.4" |
| 75 | + "@babel/cli": "^7.1.0", |
| 76 | + "@babel/core": "^7.1.0", |
| 77 | + "@babel/preset-env": "^7.1.0", |
| 78 | + "babel-eslint": "^10.0.1", |
| 79 | + "babel-jest": "^24.1.0", |
| 80 | + "eslint": "^5.14.1", |
| 81 | + "husky": "^1.3.1", |
| 82 | + "jest": "^24.1.0", |
| 83 | + "lint-staged": "^8.1.4", |
| 84 | + "prettier": "^1.16.4" |
74 | 85 | }
|
75 | 86 | }
|
0 commit comments