@dynect/base 0.8.0 → 0.8.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/package.json +1 -1
  2. package/src/module.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynect/base",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Reusable Nuxt base module — components, composables, utils, plugins and i18n from the Dynect design system.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/module.ts CHANGED
@@ -109,9 +109,13 @@ export default defineNuxtModule<DynectBaseOptions>({
109
109
 
110
110
  // ── Install required Nuxt modules ────────────────────────────────────────
111
111
  if (options.shadcn !== false) {
112
+ const shadcnComponentDir = isStandalone
113
+ ? join(runtimeComponentsDir, 'ui')
114
+ : '~/components/ui';
115
+
112
116
  await installModule('shadcn-nuxt', {
113
117
  prefix: '',
114
- componentDir: '~/components/ui',
118
+ componentDir: shadcnComponentDir,
115
119
  ...options.shadcn,
116
120
  });
117
121
  }