create-apollo-monorepo 0.6.1 → 0.6.2
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 +14 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -246,6 +246,20 @@ function preflight(flags) {
|
|
|
246
246
|
success("pnpm found");
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
// bun is required at runtime by apps/backend (apollo-cms): db:push, db:seed,
|
|
250
|
+
// dev:cron, plugins:build, the upgrade pipeline, and pre-commit hooks all
|
|
251
|
+
// shell out to `bun`. The scaffold itself works without bun, but `pnpm dev`,
|
|
252
|
+
// `pnpm backend:setup`, and `pnpm backend:upgrade` will fail without it.
|
|
253
|
+
if (!commandExists("bun")) {
|
|
254
|
+
warn(
|
|
255
|
+
"bun not found — required by apps/backend for db:push, db:seed, dev:cron,\n" +
|
|
256
|
+
" plugins:build, and the upgrade pipeline.\n" +
|
|
257
|
+
" Install: curl -fsSL https://bun.sh/install | bash (or: brew install bun)",
|
|
258
|
+
);
|
|
259
|
+
} else {
|
|
260
|
+
success("bun found");
|
|
261
|
+
}
|
|
262
|
+
|
|
249
263
|
const targetDir = resolve(flags.directory);
|
|
250
264
|
if (existsSync(targetDir)) {
|
|
251
265
|
fatal(`Directory already exists: ${targetDir}\n Choose a different name or remove it first.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-apollo-monorepo",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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"
|