|
2 | 2 | "name": "icss-utils",
|
3 | 3 | "version": "4.1.1",
|
4 | 4 | "description": "ICSS utils for postcss ast",
|
5 |
| - "main": "lib/index.js", |
| 5 | + "main": "src/index.js", |
6 | 6 | "engines": {
|
7 |
| - "node": ">= 6" |
| 7 | + "node": ">= 10.13.0 || >= 12.13.0 || >= 14" |
8 | 8 | },
|
9 | 9 | "files": [
|
10 |
| - "lib" |
| 10 | + "src" |
11 | 11 | ],
|
12 | 12 | "scripts": {
|
13 |
| - "lint": "eslint . --ignore-path .gitignore", |
14 |
| - "build": "babel --out-dir lib src", |
15 |
| - "pretest": "npm run lint", |
16 |
| - "test": "npm run test:only", |
| 13 | + "prettier": "prettier -l --ignore-path .gitignore . \"!test/test-cases\"", |
| 14 | + "eslint": "eslint --ignore-path .gitignore .", |
| 15 | + "lint": "yarn eslint && yarn prettier", |
| 16 | + "pretest": "yarn lint", |
| 17 | + "test": "jest --coverage", |
17 | 18 | "test:only": "jest",
|
18 |
| - "prepublish": "yarn test && yarn run build" |
19 |
| - }, |
20 |
| - "babel": { |
21 |
| - "presets": [ |
22 |
| - [ |
23 |
| - "@babel/preset-env", |
24 |
| - { |
25 |
| - "targets": { |
26 |
| - "node": 6 |
27 |
| - } |
28 |
| - } |
29 |
| - ] |
30 |
| - ] |
31 |
| - }, |
32 |
| - "eslintConfig": { |
33 |
| - "parser": "babel-eslint", |
34 |
| - "parserOptions": { |
35 |
| - "sourceType": "module" |
36 |
| - }, |
37 |
| - "env": { |
38 |
| - "es6": true, |
39 |
| - "jest": true |
40 |
| - }, |
41 |
| - "extends": "eslint:recommended" |
42 |
| - }, |
43 |
| - "lint-staged": { |
44 |
| - "*.js": [ |
45 |
| - "prettier --write", |
46 |
| - "eslint", |
47 |
| - "git add" |
48 |
| - ] |
49 |
| - }, |
50 |
| - "husky": { |
51 |
| - "hooks": { |
52 |
| - "pre-commit": "lint-staged" |
53 |
| - } |
| 19 | + "autotest": "jest --coverage --watch", |
| 20 | + "cover": "jest --coverage", |
| 21 | + "ci": "yarn pretest && yarn cover", |
| 22 | + "prepublishOnly": "yarn test" |
54 | 23 | },
|
55 | 24 | "repository": {
|
56 | 25 | "type": "git",
|
|
68 | 37 | "url": "https://github.com/css-modules/icss-utils/issues"
|
69 | 38 | },
|
70 | 39 | "homepage": "https://github.com/css-modules/icss-utils#readme",
|
71 |
| - "dependencies": { |
72 |
| - "postcss": "^7.0.14" |
73 |
| - }, |
74 | 40 | "devDependencies": {
|
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" |
| 41 | + "eslint": "^7.9.0", |
| 42 | + "husky": "^4.3.0", |
| 43 | + "jest": "^26.4.2", |
| 44 | + "lint-staged": "^10.4.0", |
| 45 | + "postcss": "^8.0.6", |
| 46 | + "prettier": "^2.1.2" |
| 47 | + }, |
| 48 | + "peerDependencies": { |
| 49 | + "postcss": "^8.0.0" |
85 | 50 | }
|
86 | 51 | }
|
0 commit comments