|
1 | 1 | {
|
2 | 2 | "name": "@restart/context",
|
3 |
| - "version": "2.0.4", |
| 3 | + "version": "2.1.0", |
4 | 4 | "main": "lib/index.js",
|
5 | 5 | "module": "lib/es/index.js",
|
6 | 6 | "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/*.d.ts lib && cpy types/*.d.ts lib/es", |
| 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/*.d.ts lib && cpy types/*.d.ts lib/es", |
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 | 45 | "testEnvironment": "jsdom",
|
47 |
| - "setupFiles": ["<rootDir>/test/index.js"] |
| 46 | + "setupFiles": [ |
| 47 | + "<rootDir>/test/index.js" |
| 48 | + ] |
48 | 49 | },
|
49 | 50 | "release": {
|
50 |
| - "extends": ["@4c/semantic-release-config"], |
| 51 | + "extends": [ |
| 52 | + "@4c/semantic-release-config" |
| 53 | + ], |
51 | 54 | "pkgRoot": "lib"
|
52 | 55 | },
|
53 | 56 | "devDependencies": {
|
|
0 commit comments