@saastemly/voidcommerce 0.16.0 → 0.16.1

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/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  runVoid,
22
22
  version,
23
23
  voidAppsIn
24
- } from "./index-x70qxh3m.js";
24
+ } from "./index-w0c96dxv.js";
25
25
  import {
26
26
  LOCAL_KEY_FILE,
27
27
  PRIVATE_KEY_VAR,
@@ -1379,7 +1379,7 @@ import color from "picocolors";
1379
1379
  // package.json
1380
1380
  var package_default = {
1381
1381
  name: "@saastemly/voidcommerce",
1382
- version: "0.16.0",
1382
+ version: "0.16.1",
1383
1383
  description: "Void, with a shop in it. `vc init` walks you through Better Auth, betterCommerce and every plugin; everything else passes through to `void`.",
1384
1384
  type: "module",
1385
1385
  license: "MIT",
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ import {
52
52
  routeProblem,
53
53
  strictDependencies,
54
54
  upsertJsonc
55
- } from "./index-x70qxh3m.js";
55
+ } from "./index-w0c96dxv.js";
56
56
  import {
57
57
  allEnvKeys,
58
58
  envSummary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saastemly/voidcommerce",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Void, with a shop in it. `vc init` walks you through Better Auth, betterCommerce and every plugin; everything else passes through to `void`.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -66,11 +66,14 @@ export async function preflightCommand(args: string[]): Promise<number> {
66
66
  printPreflight(project, result, source);
67
67
  if (source !== "repository") return result.ready ? 0 : 1;
68
68
 
69
- // A repository check is a check on what will be PUSHED, so it also asks
70
- // the question CI would ask and cannot answer any earlier: is there a
71
- // migration that was generated and never committed? Applied under a fresh
72
- // name on the next run, against tables that already exist, it fails the
73
- // deploy and it fails it after the shop is already down for the update.
69
+ // Is there a migration that was generated and never committed?
70
+ //
71
+ // This one has teeth only LOCALLY. A CI checkout is by definition clean,
72
+ // so `git status` there reports nothing and this passes vacuously the
73
+ // job that actually catches it in CI is the one that runs AFTER `vc dist`
74
+ // regenerates, because that is the moment a new migration can appear.
75
+ // Both are kept: they catch the same mistake at the two different moments
76
+ // it can be made.
74
77
  const pending = await uncommittedMigrations(project.root);
75
78
  if (pending.length > 0) {
76
79
  console.error(