diff options
| author | Dax Raad <[email protected]> | 2025-12-09 21:16:23 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-12-09 21:16:23 -0500 |
| commit | 0decdf6a55a20e33c5ab7eed64836b63de21a95b (patch) | |
| tree | 41ff28cf17ee69b8ce9af5c3755c40c523bd6f1c | |
| parent | 09b402a274c969ed0ce08f554c5f7084d4c92aad (diff) | |
| download | opencode-0decdf6a55a20e33c5ab7eed64836b63de21a95b.tar.gz opencode-0decdf6a55a20e33c5ab7eed64836b63de21a95b.zip | |
ci
| -rwxr-xr-x | packages/opencode/script/publish.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index de9980da4..eaa10f843 100755 --- a/packages/opencode/script/publish.ts +++ b/packages/opencode/script/publish.ts @@ -38,12 +38,11 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write( const tasks = Object.entries(binaries).map(async ([name]) => { try { - process.chdir(`./dist/${name}`) if (process.platform !== "win32") { - await $`chmod 755 -R .` + await $`chmod 755 -R .`.cwd(`./dist/${name}`) } - await $`bun pm pack` - await $`npm publish *.tgz --access public --tag ${Script.channel}` + await $`bun pm pack`.cwd(`./dist/${name}`) + await $`npm publish *.tgz --access public --tag ${Script.channel}`.cwd(`./dist/${name}`) } finally { process.chdir(dir) } |
