|
26 | 26 | "README.md" |
27 | 27 | ], |
28 | 28 | "engines": { |
29 | | - "node": ">=20" |
| 29 | + "node": ">=22" |
30 | 30 | }, |
31 | 31 | "scripts": { |
32 | | - "build": "tsc", |
33 | | - "build:wasm": "node scripts/build-wasm.js", |
| 32 | + "build": "tsc && node -e \"require('fs').writeFileSync('dist/index.cjs',require('fs').readFileSync('src/index.cjs','utf8').replace('./index.ts','./index.js'))\"", |
| 33 | + "build:wasm": "node --experimental-strip-types scripts/build-wasm.ts", |
34 | 34 | "typecheck": "tsc --noEmit", |
35 | 35 | "verify-imports": "node --experimental-strip-types scripts/verify-imports.ts", |
36 | | - "test": "node scripts/test.js run", |
37 | | - "test:watch": "node scripts/test.js", |
38 | | - "test:coverage": "node scripts/test.js run --coverage", |
| 36 | + "test": "vitest run", |
| 37 | + "test:watch": "vitest", |
| 38 | + "test:coverage": "vitest run --coverage", |
39 | 39 | "lint": "biome check src/ tests/", |
40 | 40 | "lint:fix": "biome check --write src/ tests/", |
41 | 41 | "format": "biome format --write src/ tests/", |
42 | 42 | "prepack": "npm run build", |
43 | 43 | "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true});require('fs').rmSync('.tsbuildinfo',{force:true})\"", |
44 | 44 | "prepare": "npm run build:wasm && npm run build && husky && npm run deps:tree", |
45 | | - "deps:tree": "node scripts/gen-deps.cjs", |
| 45 | + "deps:tree": "node --experimental-strip-types scripts/gen-deps.ts", |
46 | 46 | "release": "commit-and-tag-version", |
47 | 47 | "release:dry-run": "commit-and-tag-version --dry-run", |
48 | 48 | "version": "node --experimental-strip-types scripts/sync-native-versions.ts && git add package.json crates/codegraph-core/Cargo.toml" |
|
0 commit comments