mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-11 13:21:03 +00:00
fix postinstall script for node
This commit is contained in:
parent
46ff2c0ae0
commit
230d0a1510
3 changed files with 30 additions and 22 deletions
|
|
@ -64,7 +64,7 @@ for (const [os, arch] of targets) {
|
|||
|
||||
await $`mkdir -p ./dist/${pkg.name}`
|
||||
await $`cp -r ./bin ./dist/${pkg.name}/bin`
|
||||
await $`cp ./script/postinstall.js ./dist/${pkg.name}/postinstall.js`
|
||||
await $`cp ./script/postinstall.mjs ./dist/${pkg.name}/postinstall.mjs`
|
||||
await Bun.file(`./dist/${pkg.name}/package.json`).write(
|
||||
JSON.stringify(
|
||||
{
|
||||
|
|
@ -73,7 +73,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
|
|||
[pkg.name]: `./bin/${pkg.name}`,
|
||||
},
|
||||
scripts: {
|
||||
postinstall: "node ./postinstall.js",
|
||||
postinstall: "node ./postinstall.mjs",
|
||||
},
|
||||
version,
|
||||
optionalDependencies,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue