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