create-apollo-suite-monorepo 1.0.1433 → 1.0.1435
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/README.md +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -152,6 +152,21 @@ Without the mirror the drizzle-kit patch never applies, and every
|
|
|
152
152
|
constraint and prompts to truncate any non-empty table that owns one —
|
|
153
153
|
in CI (no TTY) the push aborts.
|
|
154
154
|
|
|
155
|
+
It also writes the backend's own `next`, `react` and `react-dom` specifiers
|
|
156
|
+
into the root `overrides`, so every workspace package — your frontend and
|
|
157
|
+
every `apps/cms-plugins/*` suite app included — resolves the same copy the
|
|
158
|
+
backend does, and the next `pnpm backend:update` moves them for you. Suite
|
|
159
|
+
apps are bundled into the backend's Next build; a second `next` (or React)
|
|
160
|
+
makes pnpm install a second `next-safe-action`, and typecheck fails with
|
|
161
|
+
TS2345 across every `useAction` call (apollo-suite #1915, #1916). The cost is
|
|
162
|
+
that your frontend follows the backend's `next`/`react` too.
|
|
163
|
+
|
|
164
|
+
One-time step for an existing consumer, after the first `backend:update` that
|
|
165
|
+
brings this in: commit the rewritten root `pnpm-workspace.yaml` and
|
|
166
|
+
`pnpm-lock.yaml`, and check `pnpm why next-safe-action` shows ONE copy.
|
|
167
|
+
Adding `node apps/backend/scripts/sync-root-workspace.mjs --check` to CI makes
|
|
168
|
+
a submodule bump that skipped `backend:update` fail loudly instead.
|
|
169
|
+
|
|
155
170
|
### Scaffolds created before `sync-root-workspace`
|
|
156
171
|
|
|
157
172
|
Run it once by hand, then reinstall:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-apollo-suite-monorepo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1435",
|
|
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-suite-monorepo": "index.mjs"
|