@nx/webpack 23.3.0-pr.37068.f95e11e → 23.3.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.
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
 
@@ -72,6 +72,12 @@ async function webpackInitGeneratorInternal(tree, schema) {
72
72
  // The inferred plugin runs the `webpack-cli` binary.
73
73
  devDependencies['webpack-cli'] = versions_1.webpackCliVersion;
74
74
  }
75
+ // @nx/webpack depends on sass, which pulls in @parcel/watcher. Its install
76
+ // script only builds from source when npm_config_build_from_source is set,
77
+ // so skip it.
78
+ (0, internal_1.acknowledgeBuildScripts)(tree, (0, devkit_1.detectPackageManager)(tree.root), {
79
+ '@parcel/watcher': false,
80
+ });
75
81
  installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies, undefined, schema.keepExistingVersions ?? true);
76
82
  }
77
83
  if (!schema.skipFormat) {
@@ -218,7 +218,7 @@ function normalizeOutputPath(outputPath, projectRoot) {
218
218
  * If outputPath is absolute, we need to resolve it relative to the workspaceRoot first.
219
219
  * After that, we can use the relative path to the workspaceRoot token {workspaceRoot} to generate the output path.
220
220
  */
221
- return `{workspaceRoot}/${(0, path_1.relative)(devkit_1.workspaceRoot, (0, path_1.resolve)(devkit_1.workspaceRoot, outputPath))}`;
221
+ return `{workspaceRoot}/${(0, devkit_1.normalizePath)((0, path_1.relative)(devkit_1.workspaceRoot, (0, path_1.resolve)(devkit_1.workspaceRoot, outputPath)))}`;
222
222
  }
223
223
  else {
224
224
  if (outputPath.startsWith('..')) {
@@ -2,20 +2,26 @@
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/js/internal");
5
+ const internal_1 = require("@nx/devkit/internal");
6
+ const internal_2 = require("@nx/js/internal");
6
7
  const versions_1 = require("./versions");
7
8
  function ensureDependencies(tree, options) {
8
9
  const tasks = [];
9
10
  const devDependencies = {};
10
11
  if (options.compiler === 'swc') {
11
12
  devDependencies['swc-loader'] = versions_1.swcLoaderVersion;
12
- const addSwcTask = (0, internal_1.addSwcDependencies)(tree);
13
+ const addSwcTask = (0, internal_2.addSwcDependencies)(tree);
13
14
  tasks.push(addSwcTask);
14
15
  }
15
16
  if (options.compiler === 'tsc') {
16
17
  devDependencies['tslib'] = versions_1.tsLibVersion;
17
18
  }
18
19
  if (options.uiFramework === 'react') {
20
+ // @pmmmwh/react-refresh-webpack-plugin depends on core-js-pure, whose
21
+ // install script only prints a funding message.
22
+ (0, internal_1.acknowledgeBuildScripts)(tree, (0, devkit_1.detectPackageManager)(tree.root), {
23
+ 'core-js-pure': false,
24
+ });
19
25
  devDependencies['@pmmmwh/react-refresh-webpack-plugin'] =
20
26
  versions_1.reactRefreshWebpackPluginVersion;
21
27
  devDependencies['@svgr/webpack'] = versions_1.svgrWebpackVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "23.3.0-pr.37068.f95e11e",
3
+ "version": "23.3.0-rc.0",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -118,8 +118,8 @@
118
118
  "tslib": "^2.3.0",
119
119
  "webpack-node-externals": "^3.0.0",
120
120
  "webpack-subresource-integrity": "^5.1.0",
121
- "@nx/devkit": "23.3.0-pr.37068.f95e11e",
122
- "@nx/js": "23.3.0-pr.37068.f95e11e"
121
+ "@nx/devkit": "23.3.0-rc.0",
122
+ "@nx/js": "23.3.0-rc.0"
123
123
  },
124
124
  "peerDependencies": {
125
125
  "webpack": "^5.0.0",
@@ -138,7 +138,7 @@
138
138
  }
139
139
  },
140
140
  "devDependencies": {
141
- "nx": "23.3.0-pr.37068.f95e11e"
141
+ "nx": "23.3.0-rc.0"
142
142
  },
143
143
  "publishConfig": {
144
144
  "access": "public"
@@ -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 [Webpack plugin for Nx](https://nx.dev/nx-api/webpack).
17
+
18
+ {{content}}