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