srcdev-nuxt-components 9.0.0 → 9.0.2

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/nuxt.config.ts +14 -13
  2. package/package.json +17 -18
package/nuxt.config.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  // https://nuxt.com/docs/api/configuration/nuxt-config
2
+ const isStandalone = !!process.env.NUXT_STANDALONE;
3
+
2
4
  export default defineNuxtConfig({
3
5
  devtools: { enabled: true },
4
6
 
@@ -12,21 +14,16 @@ export default defineNuxtConfig({
12
14
  },
13
15
  css: ["./app/assets/styles/main.css"],
14
16
  modules: [
15
- "@nuxt/eslint",
17
+ // Required by consumers — always included
16
18
  "@nuxt/icon",
17
19
  ...(process.env.STORYBOOK ? [] : ["@nuxt/fonts"]),
18
20
  "@nuxt/image",
19
- "@nuxtjs/i18n",
20
- "nuxt-qrcode",
21
21
  "@pinia/nuxt",
22
22
  "@vueuse/motion/nuxt",
23
23
  "pinia-plugin-persistedstate/nuxt",
24
- "@nuxt/test-utils/module",
24
+ // Dev-only — only when running the layer as a standalone app
25
+ ...(isStandalone ? ["@nuxt/eslint", "nuxt-qrcode", "@nuxt/test-utils/module"] : []),
25
26
  ],
26
- i18n: {
27
- defaultLocale: "en",
28
- locales: ["en"],
29
- },
30
27
  imports: {
31
28
  dirs: ["./stores"],
32
29
  },
@@ -118,10 +115,14 @@ export default defineNuxtConfig({
118
115
  includeWorkspace: true,
119
116
  strict: true,
120
117
  typeCheck: "build", // Enable type checking during build only - Fixes vue-tsc dependency issues
121
- tsConfig: {
122
- compilerOptions: {
123
- types: ["vitest/globals"], // TypeScript support for globals
124
- },
125
- },
118
+ ...(isStandalone
119
+ ? {
120
+ tsConfig: {
121
+ compilerOptions: {
122
+ types: ["vitest/globals"], // TypeScript support for globals
123
+ },
124
+ },
125
+ }
126
+ : {}),
126
127
  },
127
128
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "9.0.0",
4
+ "version": "9.0.2",
5
5
  "main": "nuxt.config.ts",
6
6
  "types": "types.d.ts",
7
7
  "license": "MIT",
@@ -14,23 +14,23 @@
14
14
  "cleanall": "rm -rf node_modules && rm -rf .nuxt && rm -rf .output && rm package-lock.json",
15
15
  "reinstall": "rm -rf node_modules && npm install",
16
16
  "cleaninstall": "npm run clean && npm run reinstall",
17
- "dev": "nuxi dev",
18
- "build": "nuxt build",
19
- "generate": "nuxt generate",
20
- "preview": "nuxt preview",
17
+ "dev": "NUXT_STANDALONE=true nuxi dev",
18
+ "build": "NUXT_STANDALONE=true nuxt build",
19
+ "generate": "NUXT_STANDALONE=true nuxt generate",
20
+ "preview": "NUXT_STANDALONE=true nuxt preview",
21
21
  "lint": "eslint .",
22
- "postinstall": "nuxt prepare",
22
+ "prepare": "NUXT_STANDALONE=true nuxt prepare",
23
23
  "release": "release-it",
24
- "test": "vitest",
25
- "test:run": "vitest --run",
26
- "test:ui": "vitest --ui",
27
- "test:update": "vitest --update",
28
- "storybook": "storybook dev -p 6006",
29
- "storybook:build": "storybook build",
24
+ "test": "NUXT_STANDALONE=true vitest",
25
+ "test:run": "NUXT_STANDALONE=true vitest --run",
26
+ "test:ui": "NUXT_STANDALONE=true vitest --ui",
27
+ "test:update": "NUXT_STANDALONE=true vitest --update",
28
+ "storybook": "NUXT_STANDALONE=true storybook dev -p 6006",
29
+ "storybook:build": "NUXT_STANDALONE=true storybook build",
30
30
  "storybook:serve": "npm run storybook:build && npx http-server storybook-static --port 6006",
31
31
  "storybook:cache:clean": "rm -rf node_modules/.cache/storybook node_modules/.vite",
32
- "playwright": "npx playwright test",
33
- "playwright:update": "npx playwright test --update-snapshots"
32
+ "playwright": "NUXT_STANDALONE=true npx playwright test",
33
+ "playwright:update": "NUXT_STANDALONE=true npx playwright test --update-snapshots"
34
34
  },
35
35
  "files": [
36
36
  "app/",
@@ -48,12 +48,8 @@
48
48
  "@iconify-json/material-symbols": "1.2.53",
49
49
  "@iconify-json/mdi": "1.2.3",
50
50
  "@nuxt/eslint": "1.13.0",
51
- "@nuxt/icon": "2.2.1",
52
- "@nuxt/image": "2.0.0",
53
51
  "@nuxt/test-utils": "3.23.0",
54
- "@nuxtjs/i18n": "10.2.1",
55
52
  "@nuxtjs/storybook": "9.1.0-29374011.dab79ae",
56
- "@pinia/nuxt": "0.11.3",
57
53
  "@playwright/test": "1.58.2",
58
54
  "@storybook/addon-a11y": "10.0.7",
59
55
  "@storybook/addon-docs": "10.0.7",
@@ -82,7 +78,10 @@
82
78
  },
83
79
  "dependencies": {
84
80
  "@nuxt/fonts": "0.14.0",
81
+ "@nuxt/icon": "2.2.1",
82
+ "@nuxt/image": "2.0.0",
85
83
  "@oddbird/css-anchor-positioning": "0.9.0",
84
+ "@pinia/nuxt": "0.11.3",
86
85
  "@vueuse/core": "14.2.0",
87
86
  "@vueuse/motion": "^3.0.3",
88
87
  "focus-trap-vue": "4.1.0",