Skip to content

Commit 85127f0

Browse files
committed
Added per-theme build-script policy for the standalone subtree repos
The root `pnpm-workspace.yaml` carries the `dtrace-provider` build-script denial, but it does not propagate to the standalone repos that CI subtree-pushes from `packages/<theme>` (e.g. `TryGhost/Alto`). Those repos now pin pnpm via `packageManager`, so without a policy of their own, `pnpm install` in a standalone checkout exits non-zero with ERR_PNPM_IGNORED_BUILDS (verified in a clean simulation). Ship a settings-only `pnpm-workspace.yaml` inside each theme so the standalone repos install cleanly. pnpm ignores the nested files when installing from the monorepo root — verified that all 19 workspace projects still resolve and the lockfile is unchanged.
1 parent e463238 commit 85127f0

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ function zipper(done) {
8989
'!node_modules', '!node_modules/**',
9090
'!dist', '!dist/**',
9191
'!pnpm-debug.log',
92-
'!pnpm-lock.yaml'
92+
'!pnpm-lock.yaml',
93+
'!pnpm-workspace.yaml'
9394
]),
9495
zip(filename),
9596
dest('dist/')

pnpm-workspace.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file exists for the standalone repo this theme is subtree-pushed to:
2+
# without it, pnpm 11 fails `pnpm install` on the un-triaged dtrace-provider
3+
# build script. When installing from the monorepo root, pnpm uses the root
4+
# pnpm-workspace.yaml instead (including its linkWorkspacePackages setting)
5+
# and ignores this file.
6+
allowBuilds:
7+
# Optional dtrace bindings for bunyan (a gscan dependency); not needed to
8+
# build, test, or zip the theme.
9+
dtrace-provider: false

0 commit comments

Comments
 (0)