@nx/nuxt 23.2.0-beta.5 → 23.2.0-beta.6
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addVitest = addVitest;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const internal_1 = require("@nx/eslint/internal");
|
|
5
6
|
const utils_1 = require("../../init/lib/utils");
|
|
6
7
|
const versions_1 = require("../../../utils/versions");
|
|
7
8
|
async function addVitest(tree, options) {
|
|
@@ -29,10 +30,11 @@ async function addVitest(tree, options) {
|
|
|
29
30
|
testEnvironment: 'jsdom',
|
|
30
31
|
imports: [`import vue from '@vitejs/plugin-vue'`],
|
|
31
32
|
plugins: ['vue()'],
|
|
32
|
-
//
|
|
33
|
-
//
|
|
33
|
+
// Only the legacy @nuxt/eslint-config (~0.5.6) leaves .mts out of its
|
|
34
|
+
// parser configuration, so fall back to .ts just for it. A .ts config in
|
|
35
|
+
// a CommonJS package trips Vite's `configLoader: 'native'` warning.
|
|
34
36
|
// See: https://github.com/nuxt/eslint/blob/v0.5.6/packages/eslint-config/src/legacy.ts#L6-L11
|
|
35
|
-
useEsmExtension:
|
|
37
|
+
useEsmExtension: options.linter !== 'eslint' || (0, internal_1.useFlatConfig)(tree),
|
|
36
38
|
}, true, undefined, true);
|
|
37
39
|
(0, devkit_1.updateJson)(tree, `${options.appProjectRoot}/tsconfig.spec.json`, (json) => {
|
|
38
40
|
json.compilerOptions ??= {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.6",
|
|
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": {
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"tslib": "^2.3.0",
|
|
62
62
|
"semver": "^7.6.3",
|
|
63
|
-
"@nx/devkit": "23.2.0-beta.
|
|
64
|
-
"@nx/
|
|
65
|
-
"@nx/
|
|
66
|
-
"@nx/vite": "23.2.0-beta.
|
|
67
|
-
"@nx/
|
|
68
|
-
"@nx/
|
|
63
|
+
"@nx/devkit": "23.2.0-beta.6",
|
|
64
|
+
"@nx/js": "23.2.0-beta.6",
|
|
65
|
+
"@nx/eslint": "23.2.0-beta.6",
|
|
66
|
+
"@nx/vite": "23.2.0-beta.6",
|
|
67
|
+
"@nx/vue": "23.2.0-beta.6",
|
|
68
|
+
"@nx/vitest": "23.2.0-beta.6"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"nuxt": "^3.21.10",
|
|
72
|
-
"nx": "23.2.0-beta.
|
|
72
|
+
"nx": "23.2.0-beta.6"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"nuxt": ">=3.0.0 <5.0.0",
|
|
76
76
|
"@nuxt/schema": "^3.0.0 || ^4.0.0",
|
|
77
77
|
"@nuxt/kit": "^3.0.0 || ^4.0.0",
|
|
78
|
-
"@nx/playwright": "23.2.0-beta.
|
|
79
|
-
"@nx/cypress": "23.2.0-beta.
|
|
78
|
+
"@nx/playwright": "23.2.0-beta.6",
|
|
79
|
+
"@nx/cypress": "23.2.0-beta.6"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|
|
82
82
|
"nuxt": {
|