refactor: fix publish script

This commit is contained in:
Catriel Müller
2026-02-04 09:22:31 -03:00
parent 4298d97a43
commit 8a4de31e2a
2 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -22,15 +22,20 @@ await $`cp ./script/postinstall.mjs ./dist/${pkg.name}/postinstall.mjs`
await Bun.file(`./dist/${pkg.name}/package.json`).write(
JSON.stringify(
{
name: pkg.name + "-ai",
name: pkg.name,
bin: {
[pkg.name]: `./bin/${pkg.name}`,
kilo: `./bin/kilo`,
kilocode: `./bin/kilo`,
},
scripts: {
postinstall: "bun ./postinstall.mjs || node ./postinstall.mjs",
},
version: version,
optionalDependencies: binaries,
repository: {
type: "git",
url: "https://github.com/Kilo-Org/kilo",
},
},
null,
2,