summaryrefslogtreecommitdiffhomepage
path: root/script/sync-zed.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-09 12:54:22 -0600
committerAiden Cline <[email protected]>2025-11-09 12:54:22 -0600
commitee87e1f139a25ad2e748b79e44d06cad17858ad2 (patch)
treec98346c37126787a03c0b7d487abab3cb4e1494f /script/sync-zed.ts
parent888761645751f5e3916567c0447df98274df1187 (diff)
downloadopencode-ee87e1f139a25ad2e748b79e44d06cad17858ad2.tar.gz
opencode-ee87e1f139a25ad2e748b79e44d06cad17858ad2.zip
ci: ignore
Diffstat (limited to 'script/sync-zed.ts')
-rw-r--r--script/sync-zed.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/sync-zed.ts b/script/sync-zed.ts
index 35d1b7539..7f1945313 100644
--- a/script/sync-zed.ts
+++ b/script/sync-zed.ts
@@ -74,6 +74,10 @@ async function main() {
const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\]\\s+(?:.*\\s*)?)version = "[^"]+"`)
const updatedToml = extensionsToml.replace(versionRegex, `$1version = "${cleanVersion}"`)
+ if (updatedToml === extensionsToml) {
+ throw new Error(`Failed to update version in extensions.toml - pattern not found`)
+ }
+
await Bun.write(extensionsTomlPath, updatedToml)
await $`git add extensions.toml`