@usequark/quark-create-app 1.25.15 → 1.25.16

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/package.json +2 -3
  2. package/src/index.js +10 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usequark/quark-create-app",
3
- "version": "1.25.15",
3
+ "version": "1.25.16",
4
4
  "description": "CLI to scaffold new Quark projects with Next.js, Prisma, BullMQ, and Railway deployment",
5
5
  "keywords": [
6
6
  "quark",
@@ -59,9 +59,8 @@
59
59
  "sync-templates:check": "node scripts/sync-templates.js --check",
60
60
  "regen-migration": "node scripts/regenerate-template-migration.js",
61
61
  "smoke:published": "node scripts/smoke-published.js",
62
- "test": "node test-cli.js && node --test src/utils.test.js && node --test src/prepare-hooks.test.js && node --test src/scaffold-warning.test.js && node --test src/scaffold-output.test.js && node --test src/scaffold-drift.test.js && node --test src/mobile-template.test.js && node --test src/template-scripts.test.js && node --test src/scaffold-guards.test.js && node --test src/template-config.test.js && node --test src/worker-dockerfile.test.js && node --test src/dependabot-config.test.js && node --test 'src/deploy/**/*.test.js' && node --test --test-concurrency=1 'src/deploy/**/*.integration.test.js'",
62
+ "test": "node test-cli.js && node --test src/utils.test.js && node --test src/prepare-hooks.test.js && node --test src/scaffold-warning.test.js && node --test src/scaffold-output.test.js && node --test src/scaffold-drift.test.js && node --test src/mobile-template.test.js && node --test src/template-scripts.test.js && node --test src/scaffold-guards.test.js && node --test src/template-config.test.js && node --test src/worker-dockerfile.test.js && node --test src/dependabot-config.test.js && node --test 'src/deploy/**/*.test.js' && node --test --test-concurrency=1 'src/deploy/**/*.integration.test.js' && node --test test-flags.js",
63
63
  "test:build": "node test-build.js",
64
- "test:e2e": "node test-e2e.js",
65
64
  "test:e2e:full": "node test-e2e-full.js",
66
65
  "test:integration": "node test-integration.js",
67
66
  "test:flags": "node --test test-flags.js",
package/src/index.js CHANGED
@@ -705,8 +705,11 @@ program
705
705
  ` as its own repository, or\n` +
706
706
  ` • scaffold into a temporary folder and move the files to\n` +
707
707
  ` the repository root before the first commit.\n\n` +
708
- ` Git initialization will be skipped to avoid creating a\n` +
709
- ` nested repository.\n\n` +
708
+ ` Git initialization ${
709
+ process.env.QUARK_FORCE_GIT_INIT === "true"
710
+ ? "will run anyway (QUARK_FORCE_GIT_INIT=true)."
711
+ : "will be skipped to avoid creating a\n nested repository."
712
+ }\n\n` +
710
713
  ` GitHub only runs workflows stored at the repository root, so\n` +
711
714
  ` <project>/.github/workflows/*.yml will be ignored by GitHub\n` +
712
715
  ` Actions.\n`,
@@ -1577,7 +1580,11 @@ STORAGE_PROVIDER=local
1577
1580
  // Step 11: Initialize git repository
1578
1581
  if (process.env.QUARK_SKIP_GIT_INIT === "true") {
1579
1582
  console.log(chalk.dim("\n · Skipping git initialization"));
1580
- } else if (enclosingRepo) {
1583
+ } else if (enclosingRepo && process.env.QUARK_FORCE_GIT_INIT !== "true") {
1584
+ // `initializeGit()` also checks QUARK_FORCE_GIT_INIT internally,
1585
+ // but it is only reached in the else branch below — short-
1586
+ // circuiting here on `enclosingRepo` alone made the documented
1587
+ // force flag a no-op.
1581
1588
  console.log(
1582
1589
  chalk.dim(
1583
1590
  "\n · Skipping git initialization (inside an existing repository)",