@antelopejs/dms-frontend 0.2.5 → 0.2.7

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/config.js CHANGED
@@ -50,6 +50,7 @@ exports.TEMPLATE_FILES = [
50
50
  ["server.mjs", "server.mjs"],
51
51
  ["server", "server"],
52
52
  ["npmrc", ".npmrc"],
53
+ ["gitignore", ".gitignore"],
53
54
  ["pnpm-workspace.yaml", "pnpm-workspace.yaml"],
54
55
  ];
55
56
  exports.LAYERS_SUBDIR = "frontend-modules";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms-frontend",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Frontend-agnostic loader for AntelopeJS DMS, shipping the Vue 3 renderer (Vite, Inertia, SSR)",
5
5
  "keywords": [
6
6
  "antelope",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "files": [
27
27
  "dist/",
28
+ "!dist/.tsbuildinfo",
28
29
  "templates/"
29
30
  ],
30
31
  "main": "./dist/common.js",
@@ -52,14 +53,14 @@
52
53
  "registry": "https://registry.npmjs.org/"
53
54
  },
54
55
  "scripts": {
55
- "build": "rimraf dist && tsc -p tsconfig.build.json",
56
+ "build": "rimraf dist && tsc",
56
57
  "prepack": "pnpm run build",
57
58
  "release": "pnpm run lint && pnpm run test && pnpm run prepack && release-it",
58
59
  "test": "node --import tsx --test tests/*.test.ts tests/*.test.mts",
59
60
  "test:real-source": "pnpm run build && node dist/verify-source-runner.js",
60
61
  "format": "oxfmt .",
61
62
  "lint": "oxlint && oxfmt --check .",
62
- "typecheck": "tsc -p tsconfig.json",
63
+ "typecheck": "tsc --noEmit",
63
64
  "lint:fix": "oxlint --fix --max-warnings=1000000 && oxfmt .",
64
65
  "knip": "knip --dependencies",
65
66
  "knip:all": "knip"
@@ -94,7 +95,7 @@
94
95
  "release-it-changelogen": "^0.1.0",
95
96
  "rimraf": "^6.1.2",
96
97
  "tsx": "^4.20.6",
97
- "typescript": "^5.9.3",
98
+ "typescript": "^6.0.3",
98
99
  "unplugin-auto-import": "^20.2.0",
99
100
  "vite": "^7.2.4",
100
101
  "vue": "^3.5.25",
@@ -0,0 +1,6 @@
1
+ # Rewritten by the auto-import plugins while the dev server discovers new
2
+ # components and composables. Tailwind's automatic source detection honors this
3
+ # file: without it, every rewrite invalidates the stylesheets and triggers a
4
+ # CSS hot update on plain navigation.
5
+ auto-imports.d.ts
6
+ components.d.ts
@@ -62,6 +62,11 @@ const MINIMUM_COMPRESSION_BYTES = 1_024;
62
62
  const DYNAMIC_BROTLI_QUALITY = 4;
63
63
  const SOURCE_TEMPLATE_PATH = join(PROJECT_ROOT, "index.html");
64
64
  const BUILT_SSR_RENDERER_PATH = join(PROJECT_ROOT, "dist/ssr/ssr-renderer.js");
65
+ // The SSR bundle keeps vue-i18n external, so Node loads its esm-bundler build,
66
+ // which reads compile-time flags only a bundler replaces. Vite inlines them in
67
+ // the client bundle; without the same value here, installing vue-i18n under
68
+ // NODE_ENV=production throws a ReferenceError on the first render.
69
+ globalThis.__VUE_PROD_DEVTOOLS__ ??= false;
65
70
  let productionSsrRenderer;
66
71
  let vite;
67
72
  let vitePromise;
@@ -498,5 +503,27 @@ if (
498
503
  frontendHttpServer.listen(
499
504
  Number(process.env.PORT ?? 3001),
500
505
  process.env.HOST ?? "0.0.0.0",
506
+ announceReady,
501
507
  );
502
508
  }
509
+
510
+ /**
511
+ * Print the line the CLI's "Starting … server" announcement waits for. In
512
+ * development Vite would otherwise start with the first request, so it is
513
+ * started here: "ready" then means the first page is served without that wait.
514
+ */
515
+ async function announceReady() {
516
+ try {
517
+ await developmentServer();
518
+ } catch (error) {
519
+ console.error("DMS development server failed to start", error);
520
+ return;
521
+ }
522
+ const { address, port } = frontendHttpServer.address();
523
+ const host = ["0.0.0.0", "::"].includes(address)
524
+ ? "localhost"
525
+ : address.includes(":")
526
+ ? `[${address}]`
527
+ : address;
528
+ console.log(`✓ Server ready on http://${host}:${port}`);
529
+ }