Skip to content

Commit dde2717

Browse files
committed
Excluded pnpm-workspace.yaml from theme zips
The per-theme workspace file exists so standalone checkouts can install with pnpm 11's build-script policy — it's development tooling, not theme content, so it has no place in the installable zip uploaded to Ghost. Add it to the zip ignore globs alongside the lockfile exclusions. Verified: `pnpm zip --theme alto` produces a zip with no pnpm files.
1 parent 549f2a1 commit dde2717

17 files changed

Lines changed: 34 additions & 17 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ function zipper(done) {
321321
'!node_modules', '!node_modules/**',
322322
'!dist', '!dist/**',
323323
'!pnpm-debug.log',
324-
'!pnpm-lock.yaml'
324+
'!pnpm-lock.yaml',
325+
'!pnpm-workspace.yaml'
325326
], {cwd: `./packages/${argv.theme}`}),
326327
zip(filename),
327328
dest(`packages/${argv.theme}/dist/`)

packages/alto/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/')

packages/bulletin/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/')

packages/dawn/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/')

packages/digest/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/')

packages/dope/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/')

packages/ease/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/')

packages/edge/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/')

packages/edition/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/')

packages/episode/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/')

0 commit comments

Comments
 (0)