@nx/nuxt 22.0.0-canary.20251006-0149fac → 22.0.0-canary.20251007-01d5f3f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nuxt",
3
- "version": "22.0.0-canary.20251006-0149fac",
3
+ "version": "22.0.0-canary.20251007-01d5f3f",
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": {
@@ -42,14 +42,14 @@
42
42
  "dependencies": {
43
43
  "tslib": "^2.3.0",
44
44
  "@nuxt/kit": "^3.10.0",
45
- "@nx/devkit": "22.0.0-canary.20251006-0149fac",
46
- "@nx/js": "22.0.0-canary.20251006-0149fac",
47
- "@nx/eslint": "22.0.0-canary.20251006-0149fac",
48
- "@nx/vue": "22.0.0-canary.20251006-0149fac",
49
- "@nx/vite": "22.0.0-canary.20251006-0149fac"
45
+ "@nx/devkit": "22.0.0-canary.20251007-01d5f3f",
46
+ "@nx/js": "22.0.0-canary.20251007-01d5f3f",
47
+ "@nx/eslint": "22.0.0-canary.20251007-01d5f3f",
48
+ "@nx/vue": "22.0.0-canary.20251007-01d5f3f",
49
+ "@nx/vite": "22.0.0-canary.20251007-01d5f3f"
50
50
  },
51
51
  "devDependencies": {
52
- "nx": "22.0.0-canary.20251006-0149fac"
52
+ "nx": "22.0.0-canary.20251007-01d5f3f"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@nuxt/schema": "^3.10.0"
@@ -1,4 +1,4 @@
1
- import { CreateNodes, CreateNodesV2 } from '@nx/devkit';
1
+ import { CreateNodesV2 } 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: CreateNodesV2<NuxtPluginOptions>;
10
11
  export declare const createNodesV2: CreateNodesV2<NuxtPluginOptions>;
11
- export declare const createNodes: 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":"AACA,OAAO,EAEL,WAAW,EAGX,aAAa,EAOd,MAAM,YAAY,CAAC;AA+BpB,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,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAa1D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAqCtD,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/plugins/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EAOd,MAAM,YAAY,CAAC;AA+BpB,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,aAAa,CAAC,iBAAiB,CAaxD,CAAC;AAEF,eAAO,MAAM,aAAa,kCAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodes = exports.createNodesV2 = void 0;
3
+ exports.createNodesV2 = exports.createNodes = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
6
6
  const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
@@ -24,38 +24,36 @@ function writeTargetsToCache() {
24
24
  ...targetsCache,
25
25
  });
26
26
  }
27
- exports.createNodesV2 = [
27
+ exports.createNodes = [
28
28
  '**/nuxt.config.{js,ts,mjs,mts,cjs,cts}',
29
29
  async (files, options, context) => {
30
30
  //TODO(@nrwl/nx-vue-reviewers): This should batch hashing like our other plugins.
31
- const result = await (0, devkit_1.createNodesFromFiles)(exports.createNodes[1], files, options, context);
31
+ const result = await (0, devkit_1.createNodesFromFiles)(createNodesInternal, files, options, context);
32
32
  writeTargetsToCache();
33
33
  return result;
34
34
  },
35
35
  ];
36
- exports.createNodes = [
37
- '**/nuxt.config.{js,ts,mjs,mts,cjs,cts}',
38
- async (configFilePath, options, context) => {
39
- const projectRoot = (0, path_1.dirname)(configFilePath);
40
- // Do not create a project if package.json and project.json isn't there.
41
- const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
42
- if (!siblingFiles.includes('package.json') &&
43
- !siblingFiles.includes('project.json')) {
44
- return {};
45
- }
46
- options = normalizeOptions(options);
47
- const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
48
- targetsCache[hash] ??= await buildNuxtTargets(configFilePath, projectRoot, options, context);
49
- return {
50
- projects: {
51
- [projectRoot]: {
52
- root: projectRoot,
53
- targets: targetsCache[hash],
54
- },
36
+ exports.createNodesV2 = exports.createNodes;
37
+ async function createNodesInternal(configFilePath, options, context) {
38
+ const projectRoot = (0, path_1.dirname)(configFilePath);
39
+ // Do not create a project if package.json and project.json isn't there.
40
+ const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
41
+ if (!siblingFiles.includes('package.json') &&
42
+ !siblingFiles.includes('project.json')) {
43
+ return {};
44
+ }
45
+ options = normalizeOptions(options);
46
+ const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
47
+ targetsCache[hash] ??= await buildNuxtTargets(configFilePath, projectRoot, options, context);
48
+ return {
49
+ projects: {
50
+ [projectRoot]: {
51
+ root: projectRoot,
52
+ targets: targetsCache[hash],
55
53
  },
56
- };
57
- },
58
- ];
54
+ },
55
+ };
56
+ }
59
57
  async function buildNuxtTargets(configFilePath, projectRoot, options, context) {
60
58
  const nuxtConfig = await getInfoFromNuxtConfig(configFilePath, context, projectRoot);
61
59
  const { buildOutputs } = getOutputs(nuxtConfig, projectRoot);