@nx/nuxt 22.6.4 → 22.6.5

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.6.4",
3
+ "version": "22.6.5",
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,16 +44,16 @@
44
44
  "dependencies": {
45
45
  "tslib": "^2.3.0",
46
46
  "@nuxt/kit": "^3.10.0 || ^4.0.0",
47
- "@nx/devkit": "22.6.4",
48
- "@nx/js": "22.6.4",
49
- "@nx/eslint": "22.6.4",
50
- "@nx/vue": "22.6.4",
51
- "@nx/vite": "22.6.4",
52
- "@nx/vitest": "22.6.4",
47
+ "@nx/devkit": "22.6.5",
48
+ "@nx/js": "22.6.5",
49
+ "@nx/eslint": "22.6.5",
50
+ "@nx/vue": "22.6.5",
51
+ "@nx/vite": "22.6.5",
52
+ "@nx/vitest": "22.6.5",
53
53
  "semver": "^7.5.3"
54
54
  },
55
55
  "devDependencies": {
56
- "nx": "22.6.4"
56
+ "nx": "22.6.5"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@nuxt/schema": "^3.10.0 || ^4.0.0"
@@ -1 +1 @@
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
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/nuxt/src/plugins/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,aAAa,EAQd,MAAM,YAAY,CAAC;AA6BpB,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"}
@@ -13,7 +13,6 @@ const executor_utils_1 = require("../utils/executor-utils");
13
13
  const util_1 = require("@nx/js/src/plugins/typescript/util");
14
14
  const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, 'nuxt.hash');
15
15
  const targetsCache = readTargetsCache();
16
- const pmc = (0, devkit_1.getPackageManagerCommand)();
17
16
  function readTargetsCache() {
18
17
  return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
19
18
  }
@@ -43,8 +42,9 @@ async function createNodesInternal(configFilePath, options, context) {
43
42
  return {};
44
43
  }
45
44
  options = normalizeOptions(options);
45
+ const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
46
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);
47
+ targetsCache[hash] ??= await buildNuxtTargets(configFilePath, projectRoot, options, context, pmc);
48
48
  return {
49
49
  projects: {
50
50
  [projectRoot]: {
@@ -54,7 +54,7 @@ async function createNodesInternal(configFilePath, options, context) {
54
54
  },
55
55
  };
56
56
  }
57
- async function buildNuxtTargets(configFilePath, projectRoot, options, context) {
57
+ async function buildNuxtTargets(configFilePath, projectRoot, options, context, pmc) {
58
58
  const nuxtConfig = await getInfoFromNuxtConfig(configFilePath, context, projectRoot);
59
59
  const { buildOutputs } = getOutputs(nuxtConfig, projectRoot);
60
60
  const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
@@ -164,10 +164,10 @@ function normalizeOutputPath(outputPath, projectRoot) {
164
164
  }
165
165
  else {
166
166
  if (outputPath.startsWith('..')) {
167
- return (0, path_1.join)('{workspaceRoot}', (0, path_1.join)(projectRoot, outputPath));
167
+ return (0, devkit_1.joinPathFragments)('{workspaceRoot}', projectRoot, outputPath);
168
168
  }
169
169
  else {
170
- return (0, path_1.join)('{projectRoot}', outputPath);
170
+ return (0, devkit_1.joinPathFragments)('{projectRoot}', outputPath);
171
171
  }
172
172
  }
173
173
  }