Skip to content

Commit f60241c

Browse files
committed
fix(release): build workspace before vscode-ext recovery package
vscode-ext's webview imports `superdoc`, which esbuild resolves through `node_modules/superdoc/dist/`. The main release flow builds that via the root `pnpm run build` step before any per-package work runs, but the recovery path runs `pnpm install` in a temp worktree and never builds the workspace, so `vsce package` fails to bundle the webview ("Could not resolve 'superdoc/style.css'"). Mirror the main flow by running a workspace build before the recovery package step when not at REPO_ROOT.
1 parent 98c540a commit f60241c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/release-local-stable.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,14 @@ function resumePackagePublish(pkg, distTag, options = {}) {
567567
]);
568568
break;
569569
case 'vscode-ext':
570+
// The vscode-ext webview imports `superdoc`, which resolves to
571+
// packages/superdoc/dist/. The main release flow builds that via the
572+
// root `Build packages` step, but recovery snapshots only run
573+
// `pnpm install` and never build the workspace. Build it here so
574+
// `vsce package` can bundle the webview.
575+
if (!skipBuild) {
576+
runInWorkspace(workspaceRoot, 'pnpm', ['run', 'build']);
577+
}
570578
runInWorkspace(workspaceRoot, 'pnpm', ['--prefix', join(workspaceRoot, 'apps/vscode-ext'), 'run', 'package']);
571579
runInWorkspace(workspaceRoot, 'pnpm', ['--prefix', join(workspaceRoot, 'apps/vscode-ext'), 'run', 'publish:vsce']);
572580
break;

0 commit comments

Comments
 (0)