srcdev-nuxt-components 9.0.0 → 9.0.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.
Files changed (2) hide show
  1. package/nuxt.config.ts +17 -12
  2. package/package.json +17 -17
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,22 @@ 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", "@nuxtjs/i18n", "nuxt-qrcode", "@nuxt/test-utils/module"] : []),
25
26
  ],
26
- i18n: {
27
- defaultLocale: "en",
28
- locales: ["en"],
29
- },
27
+ ...(isStandalone ? {
28
+ i18n: {
29
+ defaultLocale: "en",
30
+ locales: ["en"],
31
+ },
32
+ } : {}),
30
33
  imports: {
31
34
  dirs: ["./stores"],
32
35
  },
@@ -118,10 +121,12 @@ export default defineNuxtConfig({
118
121
  includeWorkspace: true,
119
122
  strict: true,
120
123
  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
+ ...(isStandalone ? {
125
+ tsConfig: {
126
+ compilerOptions: {
127
+ types: ["vitest/globals"], // TypeScript support for globals
128
+ },
124
129
  },
125
- },
130
+ } : {}),
126
131
  },
127
132
  });
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.1",
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
+ "postinstall": "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,9 @@
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
52
  "@nuxtjs/i18n": "10.2.1",
55
53
  "@nuxtjs/storybook": "9.1.0-29374011.dab79ae",
56
- "@pinia/nuxt": "0.11.3",
57
54
  "@playwright/test": "1.58.2",
58
55
  "@storybook/addon-a11y": "10.0.7",
59
56
  "@storybook/addon-docs": "10.0.7",
@@ -82,7 +79,10 @@
82
79
  },
83
80
  "dependencies": {
84
81
  "@nuxt/fonts": "0.14.0",
82
+ "@nuxt/icon": "2.2.1",
83
+ "@nuxt/image": "2.0.0",
85
84
  "@oddbird/css-anchor-positioning": "0.9.0",
85
+ "@pinia/nuxt": "0.11.3",
86
86
  "@vueuse/core": "14.2.0",
87
87
  "@vueuse/motion": "^3.0.3",
88
88
  "focus-trap-vue": "4.1.0",