@nx/nuxt 23.3.0-pr.37068.f95e11e → 23.3.0-pr.37224.268062c

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/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](<>)
13
13
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
14
14
  [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
15
- [![Nx Sandboxing](https://staging.nx.app/workspaces/62d013ea0852fe0a2df74438/sandbox-badge.svg)](https://nx.dev/docs/features/ci-features/sandboxing)
15
+ [![Hours saved](https://img.shields.io/endpoint?url=https%3A%2F%2Fstaging.nx.app%2Fnx-cloud%2Fbadge%2F62d013ea0852fe0a2df74438%2Fhours-saved.json)](https://nx.dev/nx-cloud)
16
16
 
17
17
  </div>
18
18
 
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ensureDependencies = ensureDependencies;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const vue_1 = require("@nx/vue");
6
7
  const versions_1 = require("../../../utils/versions");
7
8
  const version_utils_1 = require("../../../utils/version-utils");
@@ -20,6 +21,11 @@ async function ensureDependencies(host, options) {
20
21
  'vue-tsc': vue_1.vueTscVersion,
21
22
  };
22
23
  if (options.style === 'scss') {
24
+ // sass pulls in @parcel/watcher, whose install script only builds from
25
+ // source when npm_config_build_from_source is set.
26
+ (0, internal_1.acknowledgeBuildScripts)(host, (0, devkit_1.detectPackageManager)(host.root), {
27
+ '@parcel/watcher': false,
28
+ });
23
29
  devDependencies['sass'] = vue_1.sassVersion;
24
30
  }
25
31
  return (0, devkit_1.addDependenciesToPackageJson)(host, {}, devDependencies, undefined, true);
@@ -4,10 +4,17 @@ exports.updateDependencies = updateDependencies;
4
4
  exports.addVitestTargetDefaults = addVitestTargetDefaults;
5
5
  exports.addPlugin = addPlugin;
6
6
  const devkit_1 = require("@nx/devkit");
7
+ const internal_1 = require("@nx/devkit/internal");
7
8
  const versions_1 = require("../../../utils/versions");
8
9
  const version_utils_1 = require("../../../utils/version-utils");
9
10
  async function updateDependencies(host, schema) {
10
11
  const nuxtVersions = await (0, version_utils_1.getNuxtDependenciesVersionsToInstall)(host);
12
+ // The nuxt toolchain (nitropack, @unhead/bundler) depends on esbuild, whose
13
+ // install script only validates the prebuilt binary that ships as an optional
14
+ // dependency.
15
+ (0, internal_1.acknowledgeBuildScripts)(host, (0, devkit_1.detectPackageManager)(host.root), {
16
+ esbuild: false,
17
+ });
11
18
  return (0, devkit_1.addDependenciesToPackageJson)(host, {}, {
12
19
  '@nx/nuxt': versions_1.nxVersion,
13
20
  nuxt: nuxtVersions.nuxt,
@@ -176,7 +176,7 @@ function normalizeOutputPath(outputPath, projectRoot) {
176
176
  }
177
177
  else {
178
178
  if ((0, path_1.isAbsolute)(outputPath)) {
179
- return `{workspaceRoot}/${(0, path_1.relative)(devkit_1.workspaceRoot, outputPath)}`;
179
+ return `{workspaceRoot}/${(0, devkit_1.normalizePath)((0, path_1.relative)(devkit_1.workspaceRoot, outputPath))}`;
180
180
  }
181
181
  else {
182
182
  if (outputPath.startsWith('..')) {
@@ -15,7 +15,7 @@ function updateGitIgnore(tree) {
15
15
  for (const entry of nuxtEntries) {
16
16
  const regex = new RegExp(`^${entry}$`, 'm');
17
17
  if (!regex.test(newContents)) {
18
- newContents += `\n${entry}`;
18
+ newContents += `${newContents ? '\n' : ''}${entry}`;
19
19
  }
20
20
  }
21
21
  tree.write('.gitignore', [newContents].join('\n'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nuxt",
3
- "version": "23.3.0-pr.37068.f95e11e",
3
+ "version": "23.3.0-pr.37224.268062c",
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": {
@@ -59,24 +59,24 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "tslib": "^2.3.0",
62
- "semver": "^7.6.3",
63
- "@nx/devkit": "23.3.0-pr.37068.f95e11e",
64
- "@nx/js": "23.3.0-pr.37068.f95e11e",
65
- "@nx/eslint": "23.3.0-pr.37068.f95e11e",
66
- "@nx/vue": "23.3.0-pr.37068.f95e11e",
67
- "@nx/vite": "23.3.0-pr.37068.f95e11e",
68
- "@nx/vitest": "23.3.0-pr.37068.f95e11e"
62
+ "@nx/devkit": "23.3.0-pr.37224.268062c",
63
+ "@nx/js": "23.3.0-pr.37224.268062c",
64
+ "@nx/eslint": "23.3.0-pr.37224.268062c",
65
+ "@nx/vue": "23.3.0-pr.37224.268062c",
66
+ "@nx/vite": "23.3.0-pr.37224.268062c",
67
+ "@nx/vitest": "23.3.0-pr.37224.268062c",
68
+ "semver": "^7.6.3"
69
69
  },
70
70
  "devDependencies": {
71
71
  "nuxt": "^3.21.10",
72
- "nx": "23.3.0-pr.37068.f95e11e"
72
+ "nx": "23.3.0-pr.37224.268062c"
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/cypress": "23.3.0-pr.37068.f95e11e",
79
- "@nx/playwright": "23.3.0-pr.37068.f95e11e"
78
+ "@nx/cypress": "23.3.0-pr.37224.268062c",
79
+ "@nx/playwright": "23.3.0-pr.37224.268062c"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "nuxt": {
@@ -0,0 +1,18 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
8
+ {{links}}
9
+
10
+ <hr>
11
+
12
+ # Nx: Smart Monorepos · Fast Builds
13
+
14
+ Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
15
+
16
+ This package is a [Nuxt plugin for Nx](https://nx.dev/nx-api/nuxt).
17
+
18
+ {{content}}