From ca8c23dd717e36880d736a1df726880d38dd4366 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:24:56 -0600 Subject: [PATCH] ci: add license to npm (#11883) --- packages/opencode/script/publish.ts | 2 ++ 1 file changed, 2 insertions(+) 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,