summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-02-02 21:24:56 -0600
committeropencode <[email protected]>2026-02-03 03:44:30 +0000
commitca8c23dd717e36880d736a1df726880d38dd4366 (patch)
tree2a1b5e05338962b2649b24439c4f4e1d26d4570c
parentacc2bf5db95f5719610e6811dca74c6cbe74b027 (diff)
downloadopencode-ca8c23dd717e36880d736a1df726880d38dd4366.tar.gz
opencode-ca8c23dd717e36880d736a1df726880d38dd4366.zip
ci: add license to npm (#11883)
-rwxr-xr-xpackages/opencode/script/publish.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts
index 5fc4f3c71..3113a8500 100755
--- a/packages/opencode/script/publish.ts
+++ b/packages/opencode/script/publish.ts
@@ -18,6 +18,7 @@ const version = Object.values(binaries)[0]
await $`mkdir -p ./dist/${pkg.name}`
await $`cp -r ./bin ./dist/${pkg.name}/bin`
await $`cp ./script/postinstall.mjs ./dist/${pkg.name}/postinstall.mjs`
+await Bun.file(`./dist/${pkg.name}/LICENSE`).write(await Bun.file("../../LICENSE").text())
await Bun.file(`./dist/${pkg.name}/package.json`).write(
JSON.stringify(
@@ -30,6 +31,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
postinstall: "bun ./postinstall.mjs || node ./postinstall.mjs",
},
version: version,
+ license: pkg.license,
optionalDependencies: binaries,
},
null,