| 
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",  | 
 | 32 | +    "test:transpile-only": "mocha --require @swc-node/register/transpile-only \"tests/lib/**/*.ts\" --reporter dot --timeout 60000",  | 
33 | 33 |     "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",  | 
 | 34 | +    "test:integrations": "mocha --require @swc-node/register \"tests-integrations/lib/**/*.ts\" --reporter dot --timeout 120000",  | 
 | 35 | +    "update": "node -r @swc-node/register ./tools/update.ts && npm run eslint-fix && npm run test:nyc",  | 
 | 36 | +    "update-only": "node -r @swc-node/register ./tools/update.ts",  | 
37 | 37 |     "new": "ts-node ./tools/new-rule.ts",  | 
38 | 38 |     "predocs:watch": "npm run build:ts",  | 
39 | 39 |     "docs:watch": "vitepress dev docs",  | 
 | 
86 | 86 |     "@eslint/json": "^0.11.0",  | 
87 | 87 |     "@ota-meshi/eslint-plugin": "^0.17.6",  | 
88 | 88 |     "@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4",  | 
 | 89 | +    "@oxc-node/core": "^0.0.27",  | 
 | 90 | +    "@swc-node/register": "^1.10.10",  | 
 | 91 | +    "@swc/core": "^1.11.24",  | 
89 | 92 |     "@types/eslint-scope": "^3.7.7",  | 
90 | 93 |     "@types/mocha": "^10.0.10",  | 
91 | 94 |     "@types/natural-compare": "^1.4.3",  | 
 | 
122 | 125 |     "stylelint-config-standard": "^37.0.0",  | 
123 | 126 |     "stylelint-config-standard-vue": "^1.0.0",  | 
124 | 127 |     "stylelint-stylus": "^1.0.0",  | 
125 |  | -    "ts-node": "^10.9.2",  | 
126 | 128 |     "typescript": "^5.8.2",  | 
127 | 129 |     "typescript-eslint": "^8.28.0",  | 
128 | 130 |     "vite-plugin-eslint4b": "^0.5.1",  | 
 | 
0 commit comments