@cosmicdrift/kumiko-dev-server 0.195.0 → 0.196.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-dev-server",
3
- "version": "0.195.0",
3
+ "version": "0.196.1",
4
4
  "description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. Not shipped into production node_modules — see @cosmicdrift/kumiko-server-runtime for the prod boot path.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -54,9 +54,9 @@
54
54
  "kumiko-schema-check": "./bin/kumiko-schema-check.ts"
55
55
  },
56
56
  "dependencies": {
57
- "@cosmicdrift/kumiko-bundled-features": "0.195.0",
58
- "@cosmicdrift/kumiko-framework": "0.195.0",
59
- "@cosmicdrift/kumiko-server-runtime": "0.195.0",
57
+ "@cosmicdrift/kumiko-bundled-features": "0.196.1",
58
+ "@cosmicdrift/kumiko-framework": "0.196.1",
59
+ "@cosmicdrift/kumiko-server-runtime": "0.196.1",
60
60
  "ts-morph": "^28.0.0"
61
61
  },
62
62
  "publishConfig": {
@@ -74,6 +74,18 @@ describe("scaffoldApp", () => {
74
74
  expect(pkg.scripts["lint"]).toBe("biome check .");
75
75
  });
76
76
 
77
+ test("src/seed.ts bare return has a skip comment directly above it (kumiko-guard-silent-skip)", async () => {
78
+ const dest = join(tmp, "my-shop");
79
+ await scaffoldApp({ name: "my-shop", destination: dest });
80
+
81
+ const lines = readFileSync(join(dest, "src/seed.ts"), "utf-8").split("\n");
82
+ const returnLineIndex = lines.findIndex((l) => /^\s*if\s*\(.*\)\s*return;\s*$/.test(l));
83
+ expect(returnLineIndex).toBeGreaterThan(-1);
84
+
85
+ const precedingLine = lines[returnLineIndex - 1];
86
+ expect(precedingLine).toMatch(/^\s*\/\/\s*skip:/i);
87
+ });
88
+
77
89
  test("init migration includes auth-mode tables (read_users)", async () => {
78
90
  const dest = join(tmp, "my-shop");
79
91
  await scaffoldApp({ name: "my-shop", destination: dest });
@@ -224,6 +224,7 @@ export const seedDemoTasks: SeedFn = async (stack) => {
224
224
  {},
225
225
  admin,
226
226
  );
227
+ // skip: tenant already has tasks — dev DB persists across restarts, don't duplicate
227
228
  if (existing.rows.length > 0) return;
228
229
  for (const task of DEMO_TASKS) {
229
230
  await stack.http.write("tasks:write:task:create", task, admin);