@nx/nuxt 23.0.0-beta.21 → 23.0.0-beta.23
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/migrations.json +3 -0
- package/package.json +22 -10
- package/src/generators/application/application.d.ts.map +1 -1
- package/src/generators/application/application.js +3 -1
- package/src/generators/application/lib/ensure-dependencies.d.ts.map +1 -1
- package/src/generators/application/lib/ensure-dependencies.js +2 -1
- package/src/generators/init/init.d.ts.map +1 -1
- package/src/generators/init/init.js +2 -0
- package/src/generators/init/lib/utils.js +1 -1
- package/src/generators/init/schema.json +1 -1
- package/src/generators/storybook-configuration/configuration.d.ts.map +1 -1
- package/src/generators/storybook-configuration/configuration.js +2 -0
- package/src/plugins/plugin.d.ts +3 -3
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +5 -0
- package/src/utils/add-linting.d.ts.map +1 -1
- package/src/utils/add-linting.js +1 -1
- package/src/utils/assert-supported-nuxt-version.d.ts +3 -0
- package/src/utils/assert-supported-nuxt-version.d.ts.map +1 -0
- package/src/utils/assert-supported-nuxt-version.js +8 -0
- package/src/utils/version-utils.d.ts +1 -0
- package/src/utils/version-utils.d.ts.map +1 -1
- package/src/utils/version-utils.js +2 -0
- package/src/utils/versions.d.ts +4 -0
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +11 -1
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nuxt plugin for Nx contains executors and generators for managing Nuxt applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -44,20 +44,32 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"tslib": "^2.3.0",
|
|
47
|
-
"@
|
|
48
|
-
"@nx/
|
|
49
|
-
"@nx/
|
|
50
|
-
"@nx/
|
|
51
|
-
"@nx/
|
|
52
|
-
"@nx/
|
|
53
|
-
"@nx/vitest": "23.0.0-beta.21",
|
|
47
|
+
"@nx/devkit": "23.0.0-beta.23",
|
|
48
|
+
"@nx/js": "23.0.0-beta.23",
|
|
49
|
+
"@nx/eslint": "23.0.0-beta.23",
|
|
50
|
+
"@nx/vue": "23.0.0-beta.23",
|
|
51
|
+
"@nx/vite": "23.0.0-beta.23",
|
|
52
|
+
"@nx/vitest": "23.0.0-beta.23",
|
|
54
53
|
"semver": "^7.6.3"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
|
-
"nx": "23.0.0-beta.
|
|
56
|
+
"nx": "23.0.0-beta.23"
|
|
58
57
|
},
|
|
59
58
|
"peerDependencies": {
|
|
60
|
-
"
|
|
59
|
+
"nuxt": ">=3.0.0 <5.0.0",
|
|
60
|
+
"@nuxt/schema": "^3.0.0 || ^4.0.0",
|
|
61
|
+
"@nuxt/kit": "^3.0.0 || ^4.0.0"
|
|
62
|
+
},
|
|
63
|
+
"peerDependenciesMeta": {
|
|
64
|
+
"nuxt": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"@nuxt/schema": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"@nuxt/kit": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
61
73
|
},
|
|
62
74
|
"publishConfig": {
|
|
63
75
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/application/application.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,EAKjB,IAAI,EAEL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/application/application.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,EAKjB,IAAI,EAEL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA6BlC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKpE;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAqN5E;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -15,6 +15,7 @@ const add_linting_1 = require("../../utils/add-linting");
|
|
|
15
15
|
const add_vitest_1 = require("./lib/add-vitest");
|
|
16
16
|
const vue_1 = require("@nx/vue");
|
|
17
17
|
const ensure_dependencies_1 = require("./lib/ensure-dependencies");
|
|
18
|
+
const assert_supported_nuxt_version_1 = require("../../utils/assert-supported-nuxt-version");
|
|
18
19
|
const node_child_process_1 = require("node:child_process");
|
|
19
20
|
const node_path_1 = require("node:path");
|
|
20
21
|
const onboarding_1 = require("nx/src/nx-cloud/utilities/onboarding");
|
|
@@ -26,6 +27,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
async function applicationGeneratorInternal(tree, schema) {
|
|
30
|
+
(0, assert_supported_nuxt_version_1.assertSupportedNuxtVersion)(tree);
|
|
29
31
|
const tasks = [];
|
|
30
32
|
const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, true, // nuxt always adds plugins
|
|
31
33
|
schema.useTsSolution);
|
|
@@ -125,7 +127,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
125
127
|
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
126
128
|
'@vue/test-utils': vue_1.vueTestUtilsVersion,
|
|
127
129
|
'@vitejs/plugin-vue': vue_1.vitePluginVueVersion,
|
|
128
|
-
}));
|
|
130
|
+
}, undefined, true));
|
|
129
131
|
tasks.push(await (0, add_vitest_1.addVitest)(tree, options));
|
|
130
132
|
}
|
|
131
133
|
const nuxtInitTask = await (0, init_1.default)(tree, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/application/lib/ensure-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AASrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ensure-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nuxt/src/generators/application/lib/ensure-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AASrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,mDA4B1B"}
|
|
@@ -11,6 +11,7 @@ async function ensureDependencies(host, options) {
|
|
|
11
11
|
'@nx/vite': versions_1.nxVersion, // needed for the nxViteTsPaths plugin and @nx/vite/plugin
|
|
12
12
|
'@nuxt/devtools': nuxtVersions.nuxtDevtools,
|
|
13
13
|
'@nuxt/kit': nuxtVersions.nuxtKit,
|
|
14
|
+
'@nuxt/schema': nuxtVersions.nuxtSchema,
|
|
14
15
|
'@nuxt/ui-templates': nuxtVersions.nuxtUiTemplates,
|
|
15
16
|
nuxt: nuxtVersions.nuxt,
|
|
16
17
|
h3: nuxtVersions.h3,
|
|
@@ -21,5 +22,5 @@ async function ensureDependencies(host, options) {
|
|
|
21
22
|
if (options.style === 'scss') {
|
|
22
23
|
devDependencies['sass'] = vue_1.sassVersion;
|
|
23
24
|
}
|
|
24
|
-
return (0, devkit_1.addDependenciesToPackageJson)(host, {}, devDependencies);
|
|
25
|
+
return (0, devkit_1.addDependenciesToPackageJson)(host, {}, devDependencies, undefined, true);
|
|
25
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAI9E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAI9E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,8BAuBrE;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -5,7 +5,9 @@ const devkit_1 = require("@nx/devkit");
|
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
const plugin_1 = require("../../plugins/plugin");
|
|
7
7
|
const utils_1 = require("./lib/utils");
|
|
8
|
+
const assert_supported_nuxt_version_1 = require("../../utils/assert-supported-nuxt-version");
|
|
8
9
|
async function nuxtInitGenerator(host, schema) {
|
|
10
|
+
(0, assert_supported_nuxt_version_1.assertSupportedNuxtVersion)(host);
|
|
9
11
|
await (0, internal_1.addPlugin)(host, await (0, devkit_1.createProjectGraphAsync)(), '@nx/nuxt/plugin', plugin_1.createNodesV2, {
|
|
10
12
|
buildTargetName: ['build', 'nuxt:build', 'nuxt-build'],
|
|
11
13
|
serveTargetName: ['serve', 'nuxt:serve', 'nuxt-serve'],
|
|
@@ -12,7 +12,7 @@ async function updateDependencies(host, schema) {
|
|
|
12
12
|
'@nx/nuxt': versions_1.nxVersion,
|
|
13
13
|
nuxt: nuxtVersions.nuxt,
|
|
14
14
|
'@nx/vite': versions_1.nxVersion,
|
|
15
|
-
}, undefined, schema.keepExistingVersions);
|
|
15
|
+
}, undefined, schema.keepExistingVersions ?? true);
|
|
16
16
|
}
|
|
17
17
|
function addVitestTargetDefaults(tree) {
|
|
18
18
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/storybook-configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EAEL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/nuxt/src/generators/storybook-configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EAEL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,mDA2ChB;AAED,eAAe,+BAA+B,CAAC"}
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.storybookConfigurationGenerator = storybookConfigurationGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const vue_1 = require("@nx/vue");
|
|
6
|
+
const assert_supported_nuxt_version_1 = require("../../utils/assert-supported-nuxt-version");
|
|
6
7
|
/*
|
|
7
8
|
* This generator is basically the Vue one, but for Nuxt we
|
|
8
9
|
* are just adding the styles in `.storybook/preview.ts`
|
|
9
10
|
*/
|
|
10
11
|
async function storybookConfigurationGenerator(tree, options) {
|
|
12
|
+
(0, assert_supported_nuxt_version_1.assertSupportedNuxtVersion)(tree);
|
|
11
13
|
const { root, sourceRoot } = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
12
14
|
// Determine the source directory (app/ for Nuxt v4, src/ for Nuxt v3)
|
|
13
15
|
const sourceDir = sourceRoot?.endsWith('/app')
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodes } from '@nx/devkit';
|
|
2
2
|
export interface NuxtPluginOptions {
|
|
3
3
|
buildTargetName?: string;
|
|
4
4
|
serveTargetName?: string;
|
|
@@ -7,6 +7,6 @@ export interface NuxtPluginOptions {
|
|
|
7
7
|
buildDepsTargetName?: string;
|
|
8
8
|
watchDepsTargetName?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const createNodes:
|
|
11
|
-
export declare const createNodesV2:
|
|
10
|
+
export declare const createNodes: CreateNodes<NuxtPluginOptions>;
|
|
11
|
+
export declare const createNodesV2: CreateNodes<NuxtPluginOptions>;
|
|
12
12
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/plugins/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/plugins/plugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,WAAW,EAMZ,MAAM,YAAY,CAAC;AAapB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAoDtD,CAAC;AAEF,eAAO,MAAM,aAAa,gCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -134,6 +134,11 @@ function buildStaticTarget(buildStaticTargetName, namedInputs, buildOutputs, pro
|
|
|
134
134
|
return targetConfig;
|
|
135
135
|
}
|
|
136
136
|
async function getInfoFromNuxtConfig(configFilePath, context, projectRoot) {
|
|
137
|
+
// Only `buildDir` is read below. Typing it to the full `@nuxt/schema`
|
|
138
|
+
// `NuxtOptions` couples to one schema version, which clashes when
|
|
139
|
+
// `loadNuxtConfig` returns the (possibly older) `@nuxt/schema` bundled by the
|
|
140
|
+
// installed `@nuxt/kit`. Type just what we read so it holds across the
|
|
141
|
+
// supported Nuxt 3.x–4.x range.
|
|
137
142
|
let config;
|
|
138
143
|
if (process.env.NX_ISOLATE_PLUGINS !== 'false') {
|
|
139
144
|
config = await (await (0, executor_utils_1.loadNuxtKitDynamicImport)()).loadNuxtConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAEtE,OAAO,EAEL,iBAAiB,EAElB,MAAM,YAAY,CAAC;AAgBpB,wBAAsB,UAAU,CAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;IACP,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,
|
|
1
|
+
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAEtE,OAAO,EAEL,iBAAiB,EAElB,MAAM,YAAY,CAAC;AAgBpB,wBAAsB,UAAU,CAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;IACP,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,8BA4DF"}
|
package/src/utils/add-linting.js
CHANGED
|
@@ -45,7 +45,7 @@ async function addLinting(host, options) {
|
|
|
45
45
|
]);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, devDependencies);
|
|
48
|
+
const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, devDependencies, undefined, true);
|
|
49
49
|
tasks.push(installTask);
|
|
50
50
|
}
|
|
51
51
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-supported-nuxt-version.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/assert-supported-nuxt-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAE3D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertSupportedNuxtVersion = assertSupportedNuxtVersion;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
function assertSupportedNuxtVersion(tree) {
|
|
7
|
+
(0, internal_1.assertSupportedPackageVersion)(tree, 'nuxt', versions_1.minSupportedNuxtVersion);
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/version-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/version-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAenD,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,wBAAwB,CAAC,CAqBnC;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAS3D;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAS3D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAetE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAW1E;AAED,wBAAsB,gCAAgC,IAAI,OAAO,CAC/D,MAAM,GAAG,SAAS,CACnB,CAWA"}
|
|
@@ -14,6 +14,7 @@ async function getNuxtDependenciesVersionsToInstall(tree) {
|
|
|
14
14
|
return {
|
|
15
15
|
nuxt: versions_1.nuxtV3Version,
|
|
16
16
|
nuxtKit: versions_1.nuxtKitV3Version,
|
|
17
|
+
nuxtSchema: versions_1.nuxtSchemaV3Version,
|
|
17
18
|
h3: versions_1.h3Version,
|
|
18
19
|
nuxtDevtools: versions_1.nuxtDevtoolsV3Version,
|
|
19
20
|
nuxtUiTemplates: versions_1.nuxtUiTemplatesVersion,
|
|
@@ -24,6 +25,7 @@ async function getNuxtDependenciesVersionsToInstall(tree) {
|
|
|
24
25
|
return {
|
|
25
26
|
nuxt: versions_1.nuxtVersion,
|
|
26
27
|
nuxtKit: versions_1.nuxtKitVersion,
|
|
28
|
+
nuxtSchema: versions_1.nuxtSchemaVersion,
|
|
27
29
|
h3: versions_1.h3Version,
|
|
28
30
|
nuxtDevtools: versions_1.nuxtDevtoolsVersion,
|
|
29
31
|
nuxtUiTemplates: versions_1.nuxtUiTemplatesVersion,
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
+
export declare const minSupportedNuxtVersion = "3.0.0";
|
|
2
3
|
export declare const nuxtV4Version = "^4.0.0";
|
|
3
4
|
export declare const nuxtV3Version = "^3.21.1";
|
|
4
5
|
export declare const nuxtVersion = "^4.0.0";
|
|
5
6
|
export declare const nuxtKitV4Version = "^4.0.0";
|
|
6
7
|
export declare const nuxtKitV3Version = "^3.21.1";
|
|
7
8
|
export declare const nuxtKitVersion = "^4.0.0";
|
|
9
|
+
export declare const nuxtSchemaV4Version = "^4.0.0";
|
|
10
|
+
export declare const nuxtSchemaV3Version = "^3.21.1";
|
|
11
|
+
export declare const nuxtSchemaVersion = "^4.0.0";
|
|
8
12
|
export declare const h3Version = "^1.8.2";
|
|
9
13
|
export declare const nuxtDevtoolsV4Version = "^3.0.0";
|
|
10
14
|
export declare const nuxtDevtoolsV3Version = "^3.1.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAO/D,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAG/C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,WAAW,WAAgB,CAAC;AAGzC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,cAAc,WAAmB,CAAC;AAG/C,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,iBAAiB,WAAsB,CAAC;AAGrD,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,mBAAmB,WAAwB,CAAC;AACzD,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAG/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,6BAA6B,WAAW,CAAC"}
|
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nuxtEslintConfigLegacyVersion = exports.nuxtEslintConfigVersion = exports.nuxtUiTemplatesVersion = exports.nuxtDevtoolsVersion = exports.nuxtDevtoolsV3Version = exports.nuxtDevtoolsV4Version = exports.h3Version = exports.nuxtKitVersion = exports.nuxtKitV3Version = exports.nuxtKitV4Version = exports.nuxtVersion = exports.nuxtV3Version = exports.nuxtV4Version = exports.nxVersion = void 0;
|
|
3
|
+
exports.nuxtEslintConfigLegacyVersion = exports.nuxtEslintConfigVersion = exports.nuxtUiTemplatesVersion = exports.nuxtDevtoolsVersion = exports.nuxtDevtoolsV3Version = exports.nuxtDevtoolsV4Version = exports.h3Version = exports.nuxtSchemaVersion = exports.nuxtSchemaV3Version = exports.nuxtSchemaV4Version = exports.nuxtKitVersion = exports.nuxtKitV3Version = exports.nuxtKitV4Version = exports.nuxtVersion = exports.nuxtV3Version = exports.nuxtV4Version = exports.minSupportedNuxtVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
+
// Lowest Nuxt version the plugin supports. Nuxt 2 is EOL (2024-06-30). The only
|
|
6
|
+
// runtime Nuxt API the plugin uses is `@nuxt/kit`'s `loadNuxtConfig` (reading
|
|
7
|
+
// `buildDir`), which resolves the workspace's own `@nuxt/kit` (an optional
|
|
8
|
+
// peer) and is present since 3.0.0; `@nuxt/schema` is a type-only import. So the
|
|
9
|
+
// effective floor is the v3 major, 3.0.0.
|
|
10
|
+
exports.minSupportedNuxtVersion = '3.0.0';
|
|
5
11
|
// Nuxt versions
|
|
6
12
|
exports.nuxtV4Version = '^4.0.0';
|
|
7
13
|
exports.nuxtV3Version = '^3.21.1';
|
|
@@ -10,6 +16,10 @@ exports.nuxtVersion = exports.nuxtV4Version; // Default to v4
|
|
|
10
16
|
exports.nuxtKitV4Version = '^4.0.0';
|
|
11
17
|
exports.nuxtKitV3Version = '^3.21.1';
|
|
12
18
|
exports.nuxtKitVersion = exports.nuxtKitV4Version;
|
|
19
|
+
// @nuxt/schema versions (aligned with Nuxt)
|
|
20
|
+
exports.nuxtSchemaV4Version = '^4.0.0';
|
|
21
|
+
exports.nuxtSchemaV3Version = '^3.21.1';
|
|
22
|
+
exports.nuxtSchemaVersion = exports.nuxtSchemaV4Version;
|
|
13
23
|
// nuxt deps
|
|
14
24
|
exports.h3Version = '^1.8.2';
|
|
15
25
|
exports.nuxtDevtoolsV4Version = '^3.0.0';
|