@nx/webpack 0.0.0-pr-29993-0fbf3d3 → 0.0.0-pr-29720-06f67e5

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/migrations.json CHANGED
@@ -42,6 +42,10 @@
42
42
  "sass-loader": {
43
43
  "version": "^16.0.4",
44
44
  "alwaysAddToPackageJson": false
45
+ },
46
+ "sass-embedded": {
47
+ "version": "^1.83.4",
48
+ "alwaysAddToPackageJson": true
45
49
  }
46
50
  }
47
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "0.0.0-pr-29993-0fbf3d3",
3
+ "version": "0.0.0-pr-29720-06f67e5",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.",
6
6
  "repository": {
@@ -66,8 +66,8 @@
66
66
  "webpack-dev-server": "^5.0.4",
67
67
  "webpack-node-externals": "^3.0.0",
68
68
  "webpack-subresource-integrity": "^5.1.0",
69
- "@nx/devkit": "0.0.0-pr-29993-0fbf3d3",
70
- "@nx/js": "0.0.0-pr-29993-0fbf3d3"
69
+ "@nx/devkit": "0.0.0-pr-29720-06f67e5",
70
+ "@nx/js": "0.0.0-pr-29720-06f67e5"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -48,10 +48,7 @@ function normalizeOptions(options) {
48
48
  // executor options take precedence (especially for overriding with CLI args)
49
49
  originalTargetOptions);
50
50
  }
51
- const sourceRoot = projectNode.data.sourceRoot ??
52
- ((0, fs_1.existsSync)((0, path_1.join)(devkit_1.workspaceRoot, projectNode.data.root, 'src'))
53
- ? (0, path_1.join)(projectNode.data.root, 'src')
54
- : projectNode.data.root);
51
+ const sourceRoot = projectNode.data.sourceRoot ?? projectNode.data.root;
55
52
  if (!combinedPluginAndMaybeExecutorOptions.main) {
56
53
  throw new Error(`Missing "main" option for the entry file. Set this option in your Nx webpack plugin.`);
57
54
  }
@@ -120,7 +120,6 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
120
120
  },
121
121
  };
122
122
  targets[options.serveTargetName] = {
123
- continuous: true,
124
123
  command: `webpack-cli serve`,
125
124
  options: {
126
125
  cwd: projectRoot,
@@ -140,7 +139,6 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
140
139
  },
141
140
  };
142
141
  targets[options.previewTargetName] = {
143
- continuous: true,
144
142
  command: `webpack-cli serve`,
145
143
  options: {
146
144
  cwd: projectRoot,
@@ -160,7 +158,6 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
160
158
  },
161
159
  };
162
160
  targets[options.serveStaticTargetName] = {
163
- continuous: true,
164
161
  dependsOn: [options.buildTargetName],
165
162
  executor: '@nx/web:file-server',
166
163
  options: {
@@ -5,6 +5,7 @@ const child_process_1 = require("child_process");
5
5
  const client_1 = require("nx/src/daemon/client/client");
6
6
  const watch_1 = require("nx/src/command-line/watch/watch");
7
7
  const output_1 = require("nx/src/utils/output");
8
+ const enabled_1 = require("nx/src/daemon/client/enabled");
8
9
  class WebpackNxBuildCoordinationPlugin {
9
10
  constructor(buildCmd, skipInitialBuildOrOptions) {
10
11
  this.buildCmd = buildCmd;
@@ -17,7 +18,7 @@ class WebpackNxBuildCoordinationPlugin {
17
18
  this.buildChangedProjects();
18
19
  }
19
20
  if (!options?.skipWatchingDeps) {
20
- if ((0, client_1.isDaemonEnabled)()) {
21
+ if ((0, enabled_1.isDaemonEnabled)()) {
21
22
  this.startWatchingBuildableLibs();
22
23
  }
23
24
  else {