fix: restore the production gate after the migration tasks

- rebuild editors/vscode bundles, stale since the parser escape fix
- attach the caught ParseError as `cause` in both migration validators
- drop two unused test bindings flagged by eslint

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 12:19:53 +05:30
co-authored by Claude Opus 5
parent 6bb3ab5fe7
commit aded2daab9
7 changed files with 17 additions and 12 deletions
+3 -1
View File
@@ -276,7 +276,9 @@ export function migrateApisBlock(
parse(after);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
throw new Error(`apis-block migration produced source that failed to parse: ${message}`);
throw new Error(`apis-block migration produced source that failed to parse: ${message}`, {
cause: error,
});
}
return { source: after, changed: true };
@@ -266,7 +266,9 @@ export function migrateModeFunctions(
parse(after);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
throw new Error(`mode-functions migration produced source that failed to parse: ${message}`);
throw new Error(`mode-functions migration produced source that failed to parse: ${message}`, {
cause: error,
});
}
}