Skip to content

Commit bff6f1b

Browse files
committed
fix: esno does not exist before installation
1 parent 5cea736 commit bff6f1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"test-unit": "vitest run",
5555
"coverage": "vitest run --coverage",
5656
"release": "esno ./scripts/release.mts",
57-
"pnpm:devPreinstall": "esno ./scripts/devPreinstall.mts",
57+
"pnpm:devPreinstall": "node ./scripts/devPreinstall.js",
5858
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
5959
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
6060
},

scripts/devPreinstall.mts scripts/devPreinstall.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'node:fs'
1+
const fs = require('node:fs')
22

33
function convertVersion(dependencies) {
44
let isConverted = false

0 commit comments

Comments
 (0)