noofpi 1.1.0 → 1.1.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.
@@ -3,7 +3,7 @@ import {
3
3
  createViteConfig,
4
4
  finishPresetBuild,
5
5
  resolveFonts
6
- } from "./chunk-SSJ2KKBZ.js";
6
+ } from "./chunk-M7TMNIVH.js";
7
7
  import "./chunk-NX6BO7UB.js";
8
8
  import "./chunk-MTXQR32N.js";
9
9
  import "./chunk-ELXCFUA4.js";
@@ -816,6 +816,7 @@ function noofpiPlugin(options) {
816
816
 
817
817
  // src/vite/config.ts
818
818
  import path12 from "path";
819
+ import { fileURLToPath } from "url";
819
820
  import vue from "@vitejs/plugin-vue";
820
821
  import tailwindcss from "@tailwindcss/vite";
821
822
  import { mergeConfig } from "vite";
@@ -957,9 +958,18 @@ function createViteConfig(root, config, kind, fonts = NO_FONTS) {
957
958
  imagesPlugin(config.images),
958
959
  noofpiPlugin({ root, config, css: resolveCss(root, config, fonts) })
959
960
  ],
960
- resolve: { dedupe: ["vue", "vue-router"] },
961
+ resolve: {
962
+ dedupe: ["vue", "vue-router"],
963
+ // vue-router reports through `nostics`; the stub keeps the console free of its warnings
964
+ alias: {
965
+ nostics: fileURLToPath(
966
+ new URL("./runtime/silent-diagnostics.js", import.meta.url)
967
+ )
968
+ }
969
+ },
961
970
  // noofpi's runtime imports virtual modules, so it must go through vite instead of being externalized
962
- ssr: { noExternal: ["noofpi"] },
971
+ // vue-router too: its `nostics` import has to go through the alias above
972
+ ssr: { noExternal: ["noofpi", "vue-router"] },
963
973
  // Subpaths must be listed too: a prebundled `noofpi/runtime` would be a second copy of the runtime modules
964
974
  // (different injection keys than the ones `createNoofpiApp` provides)
965
975
  optimizeDeps: {
package/dist/cli.js CHANGED
@@ -72,10 +72,10 @@ async function main() {
72
72
  await loadEnvFiles(root, command === "dev" ? "development" : "production");
73
73
  const config = await loadConfig(root);
74
74
  if (command === "dev") {
75
- const { startDev } = await import("./dev-USSN6KFV.js");
75
+ const { startDev } = await import("./dev-Y5IW7464.js");
76
76
  await startDev(root, config, overrides);
77
77
  } else if (command === "build") {
78
- const { buildApp } = await import("./build-63DMFZJY.js");
78
+ const { buildApp } = await import("./build-GGRF4JTM.js");
79
79
  const preset = option(args, "--preset");
80
80
  await buildApp(
81
81
  root,
@@ -83,7 +83,7 @@ async function main() {
83
83
  preset ? assertBuildPreset(preset, "--preset") : void 0
84
84
  );
85
85
  } else {
86
- const { startProd } = await import("./start-U6A3PBRI.js");
86
+ const { startProd } = await import("./start-IK3X6V3N.js");
87
87
  await startProd(root, config, overrides);
88
88
  }
89
89
  }
@@ -8,7 +8,7 @@ import {
8
8
  htmlTemplate,
9
9
  resolveCss,
10
10
  resolveFonts
11
- } from "./chunk-SSJ2KKBZ.js";
11
+ } from "./chunk-M7TMNIVH.js";
12
12
  import {
13
13
  isCloudflarePreset
14
14
  } from "./chunk-NX6BO7UB.js";
@@ -0,0 +1,11 @@
1
+ // src/runtime/silent-diagnostics.ts
2
+ var diagnostic = () => new Error();
3
+ var createConsoleReporter = () => () => {
4
+ };
5
+ var defineDiagnostics = (_options) => new Proxy({}, { get: () => diagnostic });
6
+ var defineProdDiagnostics = defineDiagnostics;
7
+ export {
8
+ createConsoleReporter,
9
+ defineDiagnostics,
10
+ defineProdDiagnostics
11
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WX2V6EYH.js";
4
4
  import {
5
5
  OUTPUT_DIR
6
- } from "./chunk-SSJ2KKBZ.js";
6
+ } from "./chunk-M7TMNIVH.js";
7
7
  import "./chunk-NX6BO7UB.js";
8
8
  import {
9
9
  createHandler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noofpi",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A minimal Vue + Vite full-stack framework built around doofpi",
5
5
  "license": "MIT",
6
6
  "author": "Lior Cohen",