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.
- package/index.mjs +25 -24
- 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
|
|
445
|
-
//
|
|
446
|
-
//
|
|
447
|
-
//
|
|
448
|
-
//
|
|
449
|
-
//
|
|
450
|
-
//
|
|
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
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
"
|
|
468
|
-
"
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"
|
|
472
|
-
"
|
|
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.
|
|
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"
|