Browse Source

ci: fix homebrew

Dax Raad 5 months ago
parent
commit
f8ab0de0ad
2 changed files with 1 additions and 2 deletions
  1. 0 2
      packages/opencode/script/publish.ts
  2. 1 0
      packages/sdk/js/script/publish.ts

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

@@ -147,7 +147,6 @@ if (!snapshot) {
     await $`cd ./dist/aur-${pkg} && git push`
     await $`cd ./dist/aur-${pkg} && git push`
   }
   }
 
 
-  /*
   // Homebrew formula
   // Homebrew formula
   const homebrewFormula = [
   const homebrewFormula = [
     "# typed: false",
     "# typed: false",
@@ -205,5 +204,4 @@ if (!snapshot) {
   await $`cd ./dist/homebrew-tap && git add opencode.rb`
   await $`cd ./dist/homebrew-tap && git add opencode.rb`
   await $`cd ./dist/homebrew-tap && git commit -m "Update to v${version}"`
   await $`cd ./dist/homebrew-tap && git commit -m "Update to v${version}"`
   await $`cd ./dist/homebrew-tap && git push`
   await $`cd ./dist/homebrew-tap && git push`
-  */
 }
 }

+ 1 - 0
packages/sdk/js/script/publish.ts

@@ -11,6 +11,7 @@ const pkg = await import("../package.json").then((m) => m.default)
 const original = JSON.parse(JSON.stringify(pkg))
 const original = JSON.parse(JSON.stringify(pkg))
 for (const [key, value] of Object.entries(pkg.exports)) {
 for (const [key, value] of Object.entries(pkg.exports)) {
   const file = value.replace("./src/", "./dist/").replace(".ts", "")
   const file = value.replace("./src/", "./dist/").replace(".ts", "")
+  /// @ts-expect-error
   pkg.exports[key] = {
   pkg.exports[key] = {
     import: file + ".js",
     import: file + ".js",
     types: file + ".d.ts",
     types: file + ".d.ts",