@nightkatana/kronosys-app 1.0.0-beta.2 → 1.0.0-beta.5

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/bin/kronosys.mjs +24 -5
  2. package/package.json +2 -2
package/bin/kronosys.mjs CHANGED
@@ -19,7 +19,17 @@ const [, , command = "start", ...rest] = process.argv;
19
19
 
20
20
  const commands = {
21
21
  start: ["npx", "next", "start", "-p", "5555", ...rest],
22
- dev: ["npx", "next", "dev", "--webpack", "-H", "kronosys", "-p", "5555", ...rest],
22
+ dev: [
23
+ "npx",
24
+ "next",
25
+ "dev",
26
+ "--webpack",
27
+ "-H",
28
+ "kronosys",
29
+ "-p",
30
+ "5555",
31
+ ...rest,
32
+ ],
23
33
  };
24
34
 
25
35
  if (!commands[command]) {
@@ -53,10 +63,19 @@ async function main() {
53
63
  NODE_ENV: command === "dev" ? "development" : "production",
54
64
  };
55
65
 
56
- // Production mode requires a Next build. For global installs, build once automatically.
57
- if (command === "start" && !existsSync(resolve(projectRoot, ".next", "BUILD_ID"))) {
58
- console.log("[kronosys] No production build found. Running `next build`...");
59
- const buildCode = await runCommand("npx", ["next", "build", "--webpack"], env);
66
+ // Production mode requires a Next build. Build once on first run.
67
+ if (
68
+ command === "start" &&
69
+ !existsSync(resolve(projectRoot, ".next", "BUILD_ID"))
70
+ ) {
71
+ console.log(
72
+ "[kronosys] No production build found. Running `next build`...",
73
+ );
74
+ const buildCode = await runCommand(
75
+ "npx",
76
+ ["next", "build", "--webpack"],
77
+ env,
78
+ );
60
79
  if (buildCode !== 0) {
61
80
  process.exit(buildCode);
62
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightkatana/kronosys-app",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Kronosys — application Next.js (UI + API + SQLite).",
5
5
  "license": "MIT",
6
6
  "author": "nightkatana",
@@ -84,4 +84,4 @@
84
84
  "jsdom": "^26.1.0",
85
85
  "vitest": "^3.2.4"
86
86
  }
87
- }
87
+ }