@nx/nuxt 24.0.0-canary.20261020-e7ffd79 → 24.0.0-rc.0

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.
@@ -4,7 +4,6 @@ exports.applicationGenerator = applicationGenerator;
4
4
  exports.applicationGeneratorInternal = applicationGeneratorInternal;
5
5
  const tslib_1 = require("tslib");
6
6
  const internal_1 = require("@nx/devkit/internal");
7
- const internal_2 = require("@nx/eslint/internal");
8
7
  const devkit_1 = require("@nx/devkit");
9
8
  const init_1 = tslib_1.__importDefault(require("../init/init"));
10
9
  const normalize_options_1 = require("./lib/normalize-options");
@@ -19,7 +18,7 @@ const ensure_dependencies_1 = require("./lib/ensure-dependencies");
19
18
  const assert_supported_nuxt_version_1 = require("../../utils/assert-supported-nuxt-version");
20
19
  const prepare_project_1 = require("./lib/prepare-project");
21
20
  const node_path_1 = require("node:path");
22
- const internal_3 = require("@nx/js/internal");
21
+ const internal_2 = require("@nx/js/internal");
23
22
  async function applicationGenerator(tree, schema) {
24
23
  return await applicationGeneratorInternal(tree, {
25
24
  useProjectJson: true,
@@ -29,7 +28,7 @@ async function applicationGenerator(tree, schema) {
29
28
  async function applicationGeneratorInternal(tree, schema) {
30
29
  (0, assert_supported_nuxt_version_1.assertSupportedNuxtVersion)(tree);
31
30
  const tasks = [];
32
- const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, schema.useTsSolution);
31
+ const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, schema.useTsSolution);
33
32
  const jsInitTask = await (0, js_1.initGenerator)(tree, {
34
33
  ...schema,
35
34
  tsConfigName: schema.rootProject ? 'tsconfig.json' : 'tsconfig.base.json',
@@ -113,7 +112,7 @@ async function applicationGeneratorInternal(tree, schema) {
113
112
  // If we are using the new TS solution
114
113
  // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
115
114
  if (options.isUsingTsSolutionConfig) {
116
- await (0, internal_3.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
115
+ await (0, internal_2.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
117
116
  }
118
117
  tasks.push(await (0, add_linting_1.addLinting)(tree, {
119
118
  projectName: options.projectName,
@@ -121,7 +120,7 @@ async function applicationGeneratorInternal(tree, schema) {
121
120
  linter: options.linter,
122
121
  unitTestRunner: options.unitTestRunner,
123
122
  rootProject: options.rootProject,
124
- enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
123
+ enableTypedLinting: options.enableTypedLinting,
125
124
  }));
126
125
  if (options.unitTestRunner === 'vitest') {
127
126
  tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
@@ -139,7 +138,7 @@ async function applicationGeneratorInternal(tree, schema) {
139
138
  if (options.js)
140
139
  (0, devkit_1.toJS)(tree);
141
140
  if (options.isUsingTsSolutionConfig) {
142
- (0, internal_3.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
141
+ (0, internal_2.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
143
142
  jsx: 'preserve',
144
143
  jsxImportSource: 'vue',
145
144
  module: 'esnext',
@@ -149,7 +148,7 @@ async function applicationGeneratorInternal(tree, schema) {
149
148
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
150
149
  : undefined);
151
150
  }
152
- (0, internal_3.sortPackageJsonFields)(tree, options.appProjectRoot);
151
+ (0, internal_2.sortPackageJsonFields)(tree, options.appProjectRoot);
153
152
  if (!options.skipFormat)
154
153
  await (0, devkit_1.formatFiles)(tree);
155
154
  tasks.push(() => {
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addE2e = addE2e;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
- const internal_2 = require("@nx/eslint/internal");
6
5
  const devkit_1 = require("@nx/devkit");
7
6
  const versions_1 = require("../../../utils/versions");
8
7
  async function addE2e(host, options) {
@@ -80,7 +79,7 @@ async function addE2e(host, options) {
80
79
  directory: 'src',
81
80
  js: false,
82
81
  linter: options.linter,
83
- enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
82
+ enableTypedLinting: options.enableTypedLinting,
84
83
  webServerCommand: e2eWebServerInfo.e2eWebServerCommand,
85
84
  webServerAddress: e2eWebServerInfo.e2eWebServerAddress,
86
85
  ciWebServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
@@ -13,10 +13,6 @@ export interface Schema {
13
13
  skipPackageJson?: boolean;
14
14
  rootProject?: boolean;
15
15
  enableTypedLinting?: boolean;
16
- /**
17
- * @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
18
- */
19
- setParserOptionsProject?: boolean;
20
16
  style?: 'css' | 'scss' | 'none';
21
17
  nxCloudToken?: string;
22
18
  useTsSolution?: boolean;
@@ -107,12 +107,6 @@
107
107
  "description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
108
108
  "default": false
109
109
  },
110
- "setParserOptionsProject": {
111
- "type": "boolean",
112
- "description": "Deprecated alias for `enableTypedLinting`.",
113
- "default": false,
114
- "x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
115
- },
116
110
  "useProjectJson": {
117
111
  "type": "boolean",
118
112
  "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
@@ -7,8 +7,4 @@ export declare function addLinting(host: Tree, options: {
7
7
  unitTestRunner?: 'vitest' | 'none';
8
8
  rootProject?: boolean;
9
9
  enableTypedLinting?: boolean;
10
- /**
11
- * @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
12
- */
13
- setParserOptionsProject?: boolean;
14
10
  }): Promise<GeneratorCallback>;
@@ -14,12 +14,12 @@ async function addLinting(host, options) {
14
14
  tsConfigPaths: [(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.json')],
15
15
  unitTestRunner: options.unitTestRunner,
16
16
  rootProject: options.rootProject,
17
- enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
17
+ enableTypedLinting: options.enableTypedLinting,
18
18
  }));
19
19
  // Everything below configures ESLint — predefined configs, `extends`, ignore
20
20
  // entries — which have no equivalent in other linters.
21
21
  if (options.linter === 'eslint') {
22
- const enableTypedLinting = (0, internal_1.isTypedLintingEnabled)(options);
22
+ const { enableTypedLinting } = options;
23
23
  const isFlatConfig = (0, internal_1.useFlatConfig)(host);
24
24
  // Version-aware dependencies:
25
25
  // - Flat config (v4+): use @nuxt/eslint-config ^1.10.0 with createConfigForNuxt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nuxt",
3
- "version": "24.0.0-canary.20261020-e7ffd79",
3
+ "version": "24.0.0-rc.0",
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": {
@@ -75,24 +75,24 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "tslib": "^2.3.0",
78
- "@nx/devkit": "24.0.0-canary.20261020-e7ffd79",
79
- "@nx/js": "24.0.0-canary.20261020-e7ffd79",
80
- "@nx/eslint": "24.0.0-canary.20261020-e7ffd79",
81
- "@nx/vue": "24.0.0-canary.20261020-e7ffd79",
82
- "@nx/vite": "24.0.0-canary.20261020-e7ffd79",
83
- "@nx/vitest": "24.0.0-canary.20261020-e7ffd79",
78
+ "@nx/devkit": "24.0.0-rc.0",
79
+ "@nx/js": "24.0.0-rc.0",
80
+ "@nx/eslint": "24.0.0-rc.0",
81
+ "@nx/vue": "24.0.0-rc.0",
82
+ "@nx/vite": "24.0.0-rc.0",
83
+ "@nx/vitest": "24.0.0-rc.0",
84
84
  "semver": "^7.6.3"
85
85
  },
86
86
  "devDependencies": {
87
87
  "nuxt": "^3.21.10",
88
- "nx": "24.0.0-canary.20261020-e7ffd79"
88
+ "nx": "24.0.0-rc.0"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "nuxt": ">=3.0.0 <5.0.0",
92
92
  "@nuxt/schema": "^3.0.0 || ^4.0.0",
93
93
  "@nuxt/kit": "^3.0.0 || ^4.0.0",
94
- "@nx/cypress": "24.0.0-canary.20261020-e7ffd79",
95
- "@nx/playwright": "24.0.0-canary.20261020-e7ffd79"
94
+ "@nx/cypress": "24.0.0-rc.0",
95
+ "@nx/playwright": "24.0.0-rc.0"
96
96
  },
97
97
  "peerDependenciesMeta": {
98
98
  "nuxt": {