|
1 | 1 | { |
2 | 2 | "name": "react-context-toolbox", |
3 | | - "version": "1.2.3", |
| 3 | + "version": "2.0.0", |
4 | 4 | "main": "lib/index.js", |
5 | 5 | "module": "lib/es/index.js", |
6 | 6 | "types": "types/index.d.ts", |
|
15 | 15 | "test": "npm run lint && jest", |
16 | 16 | "testonly": "jest", |
17 | 17 | "build:es": "babel src -d lib/es --env-name esm --ignore **/__tests__ ", |
18 | | - "build:lib": |
19 | | - "babel src -d lib --ignore **/__tests__ --delete-dir-on-start ", |
| 18 | + "build:lib": "babel src -d lib --ignore **/__tests__ --delete-dir-on-start ", |
20 | 19 | "build": "npm run build:lib && npm run build:es", |
21 | 20 | "prepublishOnly": "yarn run build", |
22 | | - "lint": |
23 | | - "eslint . && prettier --list-different --ignore-path .eslintignore '**/*.{json,css,md}'", |
24 | | - "format": |
25 | | - "eslint . --fix && prettier --write --ignore-path .eslintignore '**/*.{json,css,md}'", |
| 21 | + "lint": "eslint . && prettier --list-different --ignore-path .eslintignore '**/*.{json,css,md}'", |
| 22 | + "format": "eslint . --fix && prettier --write --ignore-path .eslintignore '**/*.{json,css,md}'", |
26 | 23 | "precommit": "lint-staged" |
27 | 24 | }, |
28 | 25 | "publishConfig": { |
|
34 | 31 | "trailingComma": "all" |
35 | 32 | }, |
36 | 33 | "lint-staged": { |
37 | | - "*.js": ["eslint --fix", "git add"], |
| 34 | + "*.js": [ |
| 35 | + "eslint --fix", |
| 36 | + "git add" |
| 37 | + ], |
38 | 38 | "*.{json,css,md}": [ |
39 | 39 | "prettier --write --ignore-path .eslintignore", |
40 | 40 | "git add" |
41 | 41 | ] |
42 | 42 | }, |
43 | 43 | "jest": { |
44 | | - "roots": ["<rootDir>/test"], |
| 44 | + "roots": [ |
| 45 | + "<rootDir>/test" |
| 46 | + ], |
45 | 47 | "testEnvironment": "jsdom", |
46 | | - "setupFiles": ["<rootDir>/test/index.js"] |
| 48 | + "setupFiles": [ |
| 49 | + "<rootDir>/test/index.js" |
| 50 | + ] |
47 | 51 | }, |
48 | 52 | "release": { |
49 | | - "extends": ["@4c/semantic-release-config"], |
| 53 | + "extends": [ |
| 54 | + "@4c/semantic-release-config" |
| 55 | + ], |
50 | 56 | "pkgRoot": "lib" |
51 | 57 | }, |
52 | 58 | "devDependencies": { |
|
0 commit comments