Aiden Cline 2 недель назад
Родитель
Сommit
ca8c23dd71
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/opencode/script/publish.ts

+ 2 - 0
packages/opencode/script/publish.ts

@@ -18,6 +18,7 @@ const version = Object.values(binaries)[0]
 await $`mkdir -p ./dist/${pkg.name}`
 await $`mkdir -p ./dist/${pkg.name}`
 await $`cp -r ./bin ./dist/${pkg.name}/bin`
 await $`cp -r ./bin ./dist/${pkg.name}/bin`
 await $`cp ./script/postinstall.mjs ./dist/${pkg.name}/postinstall.mjs`
 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(
 await Bun.file(`./dist/${pkg.name}/package.json`).write(
   JSON.stringify(
   JSON.stringify(
@@ -30,6 +31,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
         postinstall: "bun ./postinstall.mjs || node ./postinstall.mjs",
         postinstall: "bun ./postinstall.mjs || node ./postinstall.mjs",
       },
       },
       version: version,
       version: version,
+      license: pkg.license,
       optionalDependencies: binaries,
       optionalDependencies: binaries,
     },
     },
     null,
     null,