@workflow/nuxt 5.0.0-beta.3 → 5.0.0-beta.30
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/README.md +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +20 -0
- package/package.json +7 -5
package/README.md
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineNuxtModule } from '@nuxt/kit';
|
|
2
|
+
import { ensureWorkflowTargetWorldEnv, resolveWorkflowTargetWorldAlias, WORKFLOW_WORLD_TARGET_MODULE } from '@workflow/builders';
|
|
2
3
|
|
|
3
4
|
const module$1 = defineNuxtModule({
|
|
4
5
|
meta: {
|
|
@@ -11,6 +12,11 @@ const module$1 = defineNuxtModule({
|
|
|
11
12
|
typescriptPlugin: true
|
|
12
13
|
},
|
|
13
14
|
setup(options, nuxt) {
|
|
15
|
+
const workflowTargetWorld = ensureWorkflowTargetWorldEnv();
|
|
16
|
+
const workflowTargetWorldAlias = resolveWorkflowTargetWorldAlias({
|
|
17
|
+
workingDir: nuxt.options.rootDir,
|
|
18
|
+
targetWorld: workflowTargetWorld
|
|
19
|
+
});
|
|
14
20
|
nuxt.options.nitro ||= {};
|
|
15
21
|
nuxt.options.nitro.modules ||= [];
|
|
16
22
|
if (!nuxt.options.nitro.modules.includes("@workflow/nitro")) {
|
|
@@ -20,6 +26,20 @@ const module$1 = defineNuxtModule({
|
|
|
20
26
|
nuxt.options.nitro.modules.push("@workflow/nitro");
|
|
21
27
|
}
|
|
22
28
|
nuxt.options.vite ||= {};
|
|
29
|
+
nuxt.options.vite.define ||= {};
|
|
30
|
+
nuxt.options.vite.define["process.env.WORKFLOW_TARGET_WORLD"] = JSON.stringify(workflowTargetWorld);
|
|
31
|
+
nuxt.options.vite.resolve ||= {};
|
|
32
|
+
nuxt.options.vite.resolve.alias ||= {};
|
|
33
|
+
if (Array.isArray(nuxt.options.vite.resolve.alias)) {
|
|
34
|
+
nuxt.options.vite.resolve.alias.push({
|
|
35
|
+
find: WORKFLOW_WORLD_TARGET_MODULE,
|
|
36
|
+
replacement: workflowTargetWorldAlias
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
Object.assign(nuxt.options.vite.resolve.alias, {
|
|
40
|
+
[WORKFLOW_WORLD_TARGET_MODULE]: workflowTargetWorldAlias
|
|
41
|
+
});
|
|
42
|
+
}
|
|
23
43
|
nuxt.options.vite.ssr ||= {};
|
|
24
44
|
const workflowSsrMatchers = [
|
|
25
45
|
"workflow",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/nuxt",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.30",
|
|
4
4
|
"description": "Nuxt integration for Workflow SDK",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -30,14 +30,16 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nuxt/kit": "4.4.
|
|
34
|
-
"@workflow/
|
|
33
|
+
"@nuxt/kit": "4.4.8",
|
|
34
|
+
"@workflow/builders": "5.0.0-beta.30",
|
|
35
|
+
"@workflow/nitro": "5.0.0-beta.30"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@nuxt/module-builder": "1.0.2",
|
|
38
|
-
"@nuxt/schema": "4.4.
|
|
39
|
+
"@nuxt/schema": "4.4.8",
|
|
39
40
|
"@types/node": "22.19.0",
|
|
40
|
-
"nuxt": "4.4.
|
|
41
|
+
"nuxt": "4.4.8",
|
|
42
|
+
"vite": "7.3.6",
|
|
41
43
|
"@workflow/tsconfig": "5.0.0-beta.0"
|
|
42
44
|
},
|
|
43
45
|
"scripts": {
|