Skip to content

Commit 9258755

Browse files
committed
Fix build
1 parent 7a6d748 commit 9258755

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/test-transpile-external.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ test_repo() {
4545

4646
# Install dependencies if node_modules is missing.
4747
# --ignore-workspace prevents pnpm from resolving to the parent monorepo workspace.
48+
# --ignore-scripts skips lifecycle scripts: pnpm 11 errors on unapproved builds
49+
# (ERR_PNPM_IGNORED_BUILDS), and the workspace's allowBuilds list is detached by
50+
# --ignore-workspace. The transpile CLI only reads installed sources for type
51+
# resolution (folib / iets .d.ts); no postinstall artefacts are needed.
4852
if [[ -f "$dir/package.json" && ! -d "$dir/node_modules" ]]; then
4953
echo "Installing dependencies for $repo..."
50-
(cd "$dir" && pnpm install --ignore-workspace)
54+
(cd "$dir" && pnpm install --ignore-workspace --ignore-scripts)
5155
fi
5256

5357
# Transpile all files in one process using directory mode

0 commit comments

Comments
 (0)