|
18 | 18 | "scripts": { |
19 | 19 | "prebuild": "npm run -s clean", |
20 | 20 | "build": "npm run build:meta && npm run build:ts && npm run build:dts", |
21 | | - "build:meta": "ts-node --transpile-only ./tools/update-meta.ts", |
| 21 | + "build:meta": "node -r @swc-node/register ./tools/update-meta.ts", |
22 | 22 | "build:ts": "tsc --project ./tsconfig.build.json", |
23 | 23 | "build:dts": "npm run build:dts-step1 && npm run build:dts-step2", |
24 | 24 | "build:dts-step1": "tsc --declaration --outDir dist-ts --project ./tsconfig.build.json", |
25 | 25 | "build:dts-step2": "dts-bundle --name eslint-plugin-jsonc --main ./dist-ts/index.d.ts --out ../index.d.ts", |
26 | 26 | "clean": "rimraf .nyc_output dist coverage", |
27 | 27 | "lint": "eslint .", |
28 | 28 | "eslint-fix": "eslint . --fix", |
29 | | - "test:base": "mocha --require ts-node/register \"tests/lib/**/*.ts\" --reporter dot --timeout 60000", |
| 29 | + "test:base": "env-cmd -e test mocha --require @swc-node/register \"tests/lib/**/*.ts\" --reporter dot --timeout 60000", |
30 | 30 | "test": "npm run test:base", |
31 | 31 | "test:nyc": "nyc --reporter=lcov npm run test:base", |
32 | | - "test:transpile-only": "mocha --require ts-node/register/transpile-only \"tests/lib/**/*.ts\" --reporter dot --timeout 60000", |
33 | 32 | "pretest:integrations": "npm run build:ts && npm pack", |
34 | | - "test:integrations": "mocha --require ts-node/register \"tests-integrations/lib/**/*.ts\" --reporter dot --timeout 120000", |
35 | | - "update": "ts-node --transpile-only ./tools/update.ts && npm run eslint-fix && npm run test:nyc", |
36 | | - "update-only": "ts-node --transpile-only ./tools/update.ts", |
37 | | - "new": "ts-node ./tools/new-rule.ts", |
| 33 | + "test:integrations": "mocha --require @swc-node/register \"tests-integrations/lib/**/*.ts\" --reporter dot --timeout 120000", |
| 34 | + "update": "node -r @swc-node/register ./tools/update.ts && npm run eslint-fix && npm run test:nyc", |
| 35 | + "update-only": "node -r @swc-node/register ./tools/update.ts", |
| 36 | + "new": "node -r @swc-node/register ./tools/new-rule.ts", |
38 | 37 | "predocs:watch": "npm run build:ts", |
39 | 38 | "docs:watch": "vitepress dev docs", |
40 | 39 | "docs:build": "npm run build:ts && vitepress build docs", |
|
73 | 72 | "graphemer": "^1.4.0", |
74 | 73 | "jsonc-eslint-parser": "^2.4.0", |
75 | 74 | "natural-compare": "^1.4.0", |
76 | | - "synckit": "^0.6.2 || ^0.7.3 || ^0.10.3" |
| 75 | + "synckit": "^0.6.2 || ^0.7.3 || ^0.11.5" |
77 | 76 | }, |
78 | 77 | "peerDependencies": { |
79 | 78 | "eslint": ">=6.0.0" |
|
86 | 85 | "@eslint/json": "^0.11.0", |
87 | 86 | "@ota-meshi/eslint-plugin": "^0.17.6", |
88 | 87 | "@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4", |
| 88 | + "@swc-node/register": "^1.10.10", |
| 89 | + "@swc/core": "^1.11.24", |
89 | 90 | "@types/eslint-scope": "^3.7.7", |
90 | 91 | "@types/mocha": "^10.0.10", |
91 | 92 | "@types/natural-compare": "^1.4.3", |
|
122 | 123 | "stylelint-config-standard": "^37.0.0", |
123 | 124 | "stylelint-config-standard-vue": "^1.0.0", |
124 | 125 | "stylelint-stylus": "^1.0.0", |
125 | | - "ts-node": "^10.9.2", |
126 | 126 | "typescript": "^5.8.2", |
127 | 127 | "typescript-eslint": "^8.28.0", |
128 | 128 | "vite-plugin-eslint4b": "^0.5.1", |
|
0 commit comments