@revenexx/studio-commerce-devkit 0.1.1 → 0.1.3
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/nuxt.config.ts +10 -0
- package/package.json +2 -2
package/nuxt.config.ts
CHANGED
|
@@ -76,6 +76,16 @@ export default defineNuxtConfig({
|
|
|
76
76
|
nuxt.options.css.push(tpl.dst)
|
|
77
77
|
},
|
|
78
78
|
],
|
|
79
|
+
// The studio packages install to node_modules, which unimport skips by
|
|
80
|
+
// default. Their runtime/layer code relies on Nuxt auto-imports (useHead,
|
|
81
|
+
// useState, usePlatformAuth, …), so include them in the transform — otherwise
|
|
82
|
+
// the studio renders with "useHead is not defined". (Belt-and-suspenders: the
|
|
83
|
+
// modules also self-register; this additionally covers the studio-shared layer.)
|
|
84
|
+
imports: {
|
|
85
|
+
transform: {
|
|
86
|
+
include: [/@revenexx[/\\]studio-shared/, /@revenexx[/\\]studio-commerce/],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
79
89
|
vite: {
|
|
80
90
|
plugins: [tailwindcss()],
|
|
81
91
|
server: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenexx/studio-commerce-devkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Preview any revenexx app locally in the Commerce Studio: renders the app's cockpit.json with mock data, no platform. Add as a devDependency and run `commerce-studio` from your app repo.",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"tw-animate-css": "^1.4.0",
|
|
27
27
|
"vue": "^3.5.26",
|
|
28
28
|
"vue-router": "^4.6.4",
|
|
29
|
-
"@revenexx/studio-commerce": "0.1.
|
|
29
|
+
"@revenexx/studio-commerce": "0.1.3",
|
|
30
30
|
"@revenexx/studio-shared": "0.1.1"
|
|
31
31
|
},
|
|
32
32
|
"license": "SEE LICENSE IN LICENSE",
|