|
19 | 19 | "module": "dist/immutable.es.js",
|
20 | 20 | "sideEffects": false,
|
21 | 21 | "types": "dist/immutable.d.ts",
|
| 22 | + "files": [ |
| 23 | + "dist", |
| 24 | + "README.md", |
| 25 | + "LICENSE" |
| 26 | + ], |
| 27 | + "keywords": [ |
| 28 | + "immutable", |
| 29 | + "persistent", |
| 30 | + "lazy", |
| 31 | + "data", |
| 32 | + "datastructure", |
| 33 | + "functional", |
| 34 | + "collection", |
| 35 | + "stateless", |
| 36 | + "sequence", |
| 37 | + "iteration" |
| 38 | + ], |
22 | 39 | "publishKeys": [
|
23 | 40 | "name",
|
24 | 41 | "version",
|
|
39 | 56 | "npm": ">=7.0.0"
|
40 | 57 | },
|
41 | 58 | "scripts": {
|
42 |
| - "check:all": "run-s lint:format test", |
43 |
| - "build": "run-s clean:dist bundle:dist bundle:es copy:dist stats:dist prepare:dist", |
44 |
| - "clean:dist": "rimraf dist", |
45 |
| - "bundle:dist": "rollup -c ./resources/rollup-config.js", |
46 |
| - "bundle:es": "rollup -c ./resources/rollup-config-es.js", |
47 |
| - "copy:dist": "cp ./type-definitions/immutable.* dist", |
48 |
| - "stats:dist": "node ./resources/dist-stats.js", |
49 |
| - "prepare:dist": "./resources/prepare-dist.sh", |
| 59 | + "test": "run-s format lint type-check build unit-test", |
50 | 60 | "format": "npm run lint:format -- --write",
|
51 | 61 | "lint": "run-s lint:*",
|
52 |
| - "lint:ts": "tslint --project type-definitions/tsconfig.json \"{__tests__,src,type-definitions,website/src}/**/*.{ts,tsx}\"", |
53 |
| - "lint:js": "eslint \"{__tests__,src,website/src}/**/*.js\"", |
54 | 62 | "lint:format": "prettier --check \"{__tests__,src,type-definitions,website/src,perf,resources}/**/*{.js,.ts,.tsx,.flow,.css}\"",
|
55 |
| - "testonly": "jest", |
56 |
| - "test": "run-s format build lint testonly type-check", |
57 |
| - "check:git-clean": "./resources/check-changes", |
| 63 | + "lint:js": "eslint \"{__tests__,src,website/src}/**/*.js\"", |
| 64 | + "lint:ts": "tslint --project type-definitions/tsconfig.json \"{__tests__,src,type-definitions,website/src}/**/*.{ts,tsx}\"", |
58 | 65 | "type-check": "run-s type-check:*",
|
59 | 66 | "type-check:ts": "tsc --project type-definitions/tsconfig.json && tsc --project __tests__/tsconfig.json && dtslint type-definitions/ts-tests",
|
60 | 67 | "type-check:flow": "flow check type-definitions/flow-tests --include-warnings",
|
61 |
| - "perf": "node ./resources/bench.js", |
| 68 | + "build": "run-s build:*", |
| 69 | + "build:clean": "rimraf dist", |
| 70 | + "build:dist": "rollup -c ./resources/rollup-config.js", |
| 71 | + "build:esm": "rollup -c ./resources/rollup-config-es.js", |
| 72 | + "build:copy": "cp ./type-definitions/immutable.* dist", |
| 73 | + "build:prepare": "./resources/prepare-dist.sh", |
| 74 | + "build:stats": "node ./resources/dist-stats.js", |
| 75 | + "unit-test": "jest", |
62 | 76 | "website:build": "cd website && next build && next-sitemap && next export",
|
63 | 77 | "website:dev": "cd website && next dev",
|
| 78 | + "check-git-clean": "./resources/check-git-clean.sh", |
| 79 | + "benchmark": "node ./resources/benchmark.js", |
64 | 80 | "publish": "echo 'ONLY PUBLISH VIA CI'; exit 1;"
|
65 | 81 | },
|
66 | 82 | "prettier": {
|
|
122 | 138 | "typescript": "4.3.4",
|
123 | 139 | "uglify-js": "3.11.1",
|
124 | 140 | "uglify-save-license": "0.4.1"
|
125 |
| - }, |
126 |
| - "files": [ |
127 |
| - "dist", |
128 |
| - "README.md", |
129 |
| - "LICENSE" |
130 |
| - ], |
131 |
| - "keywords": [ |
132 |
| - "immutable", |
133 |
| - "persistent", |
134 |
| - "lazy", |
135 |
| - "data", |
136 |
| - "datastructure", |
137 |
| - "functional", |
138 |
| - "collection", |
139 |
| - "stateless", |
140 |
| - "sequence", |
141 |
| - "iteration" |
142 |
| - ] |
| 141 | + } |
143 | 142 | }
|
0 commit comments