Skip to content

Commit

Permalink
replace with Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Dec 27, 2024
1 parent 441cb74 commit a3c93b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"homepage": "https://github.com/eslint/rewrite#readme",
"scripts": {
"build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
"build:cts": "sed 's|import(\"./types.ts\")|import(\"./types.ts\", { with: { \"resolution-mode\": \"import\" } })|' dist/esm/index.d.ts > dist/cjs/index.d.cts",
"build:cts": "node -e \"fs.writeFileSync('dist/cjs/index.d.cts', fs.readFileSync('dist/esm/index.d.ts', 'utf-8').replaceAll('import(\\\"./types.ts\\\")', 'import(\\\"./types.ts\\\", { with: { \\\"resolution-mode\\\": \\\"import\\\" } })'))\"",
"build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts",
"pretest": "npm run build",
"test": "mocha tests/",
Expand Down

0 comments on commit a3c93b0

Please sign in to comment.