create-apollo-monorepo 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +25 -24
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -441,35 +441,36 @@ function linkRootEnvLocal(targetDir, appRelPath, fallbackLines) {
441
441
  }
442
442
 
443
443
  function writePnpmWorkspace(targetDir) {
444
- // pnpm 10 reads `onlyBuiltDependencies` from pnpm-workspace.yaml (the
445
- // package.json#pnpm location is deprecated for workspaces). apollo-cms
446
- // transitively pulls multiple esbuild versions (0.18, 0.25, 0.27); pnpm's
447
- // binary symlink can pick the wrong platform binary for esbuild's
448
- // postinstall version check, failing with "Expected X.Y.Z but got A.B.C".
449
- // Allow listed packages to run their build/postinstall scripts; the rest
450
- // are skipped (pnpm 10 default is empty allow-list).
444
+ // pnpm 11 replaced `onlyBuiltDependencies` (list) with `allowBuilds`
445
+ // (map of package -> bool). apollo-cms transitively pulls multiple
446
+ // esbuild versions (0.18, 0.25, 0.27); pnpm's binary symlink can pick
447
+ // the wrong platform binary for esbuild's postinstall version check,
448
+ // failing with "Expected X.Y.Z but got A.B.C". Allow listed packages
449
+ // to run their build/postinstall scripts; the rest are skipped
450
+ // (pnpm 11 default is `strictDepBuilds: true`, empty allow-map).
451
+ // See https://pnpm.io/blog/releases/11.0.
451
452
  const yaml = [
452
453
  "packages:",
453
454
  " - 'apps/*'",
454
455
  " - 'apps/cms-plugins/*'",
455
456
  "",
456
- "onlyBuiltDependencies:",
457
- " - '@parcel/watcher'",
458
- " - '@rolldown/binding-darwin-arm64'",
459
- " - '@rolldown/binding-linux-arm64-gnu'",
460
- " - '@rolldown/binding-linux-x64-gnu'",
461
- " - '@swc/core'",
462
- " - '@swc/core-darwin-arm64'",
463
- " - '@swc/core-darwin-x64'",
464
- " - '@swc/core-linux-arm64-gnu'",
465
- " - '@swc/core-linux-x64-gnu'",
466
- " - 'better-sqlite3'",
467
- " - 'core-js'",
468
- " - 'core-js-pure'",
469
- " - 'esbuild'",
470
- " - 'msw'",
471
- " - 'sharp'",
472
- " - 'unrs-resolver'",
457
+ "allowBuilds:",
458
+ " '@parcel/watcher': true",
459
+ " '@rolldown/binding-darwin-arm64': true",
460
+ " '@rolldown/binding-linux-arm64-gnu': true",
461
+ " '@rolldown/binding-linux-x64-gnu': true",
462
+ " '@swc/core': true",
463
+ " '@swc/core-darwin-arm64': true",
464
+ " '@swc/core-darwin-x64': true",
465
+ " '@swc/core-linux-arm64-gnu': true",
466
+ " '@swc/core-linux-x64-gnu': true",
467
+ " 'better-sqlite3': true",
468
+ " 'core-js': true",
469
+ " 'core-js-pure': true",
470
+ " 'esbuild': true",
471
+ " 'msw': true",
472
+ " 'sharp': true",
473
+ " 'unrs-resolver': true",
473
474
  "",
474
475
  ].join("\n");
475
476
  writeFileSync(resolve(targetDir, "pnpm-workspace.yaml"), yaml);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-apollo-monorepo",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "Scaffold a monorepo with a frontend app and Apollo CMS as a git submodule backend (single-origin via Next.js rewrites + assetPrefix)",
5
5
  "bin": {
6
6
  "create-apollo-monorepo": "index.mjs"