|
12 | 12 | "scripts": {
|
13 | 13 | "prepublishOnly": "npm run build",
|
14 | 14 | "build": "babel -o legacy.js index.js",
|
15 |
| - "test:lint": "eslint .", |
| 15 | + |
| 16 | + "==================== linting ======================": "", |
| 17 | + "lint": "eslint .", |
| 18 | + |
| 19 | + "=================== typescript ====================": "", |
| 20 | + "ts": "npm run test:ts && npm run test:16", |
16 | 21 | "test:ts": "ts-node ./test/ts/simple.ts",
|
| 22 | + "test:16": "npm run test:ts:16 && npm run test:cjs:16 && npm run test:mjs:16", |
17 | 23 | "test:ts:16": "ts-node --compilerOptions '{\"moduleResolution\": \"Node16\", \"module\": \"Node16\"}' ./test/ts/simple.ts",
|
18 | 24 | "test:cjs:16": "ts-node --compilerOptions '{\"moduleResolution\": \"Node16\", \"module\": \"Node16\"}' ./test/ts/simple.cjs",
|
19 | 25 | "test:mjs:16": "ts-node --compilerOptions '{\"moduleResolution\": \"Node16\", \"module\": \"Node16\"}' ./test/ts/simple.mjs",
|
| 26 | + |
| 27 | + "===================== cases =======================": "", |
| 28 | + "test:cases": "npm run tap test/*.test.js -- --coverage", |
20 | 29 | "tap": "tap --reporter classic",
|
21 | 30 | "test:git": "npm run tap test/git-check-ignore.test.js",
|
22 | 31 | "test:ignore": "npm run tap test/ignore.test.js",
|
23 | 32 | "test:ignore:only": "IGNORE_ONLY_IGNORES=1 npm run tap test/ignore.test.js",
|
24 | 33 | "test:others": "npm run tap test/others.test.js",
|
25 |
| - "test:cases": "npm run tap test/*.test.js -- --coverage", |
26 | 34 | "test:no-coverage": "npm run tap test/*.test.js -- --no-check-coverage",
|
27 |
| - "test:only": "npm run test:lint && npm run build && npm run test:ts && npm run test:ts:16 && npm run test:cjs:16 && npm run test:mjs:16 && npm run test:cases", |
28 |
| - "test": "npm run test:only", |
| 35 | + |
| 36 | + "test": "npm run lint && npm run ts && npm run build && npm run test:cases", |
29 | 37 | "test:win32": "IGNORE_TEST_WIN32=1 npm run test",
|
30 | 38 | "report": "tap --coverage-report=html"
|
31 | 39 | },
|
|
0 commit comments