@nx/webpack 23.0.0-canary.20260504-e8aa612 → 23.0.0-pr.33655.05d9542

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/webpack",
3
- "version": "23.0.0-canary.20260504-e8aa612",
3
+ "version": "23.0.0-pr.33655.05d9542",
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": {
@@ -65,11 +65,11 @@
65
65
  "webpack-dev-server": "^5.2.1",
66
66
  "webpack-node-externals": "^3.0.0",
67
67
  "webpack-subresource-integrity": "^5.1.0",
68
- "@nx/devkit": "23.0.0-canary.20260504-e8aa612",
69
- "@nx/js": "23.0.0-canary.20260504-e8aa612"
68
+ "@nx/devkit": "23.0.0-pr.33655.05d9542",
69
+ "@nx/js": "23.0.0-pr.33655.05d9542"
70
70
  },
71
71
  "devDependencies": {
72
- "nx": "23.0.0-canary.20260504-e8aa612"
72
+ "nx": "23.0.0-pr.33655.05d9542"
73
73
  },
74
74
  "publishConfig": {
75
75
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kBAAkB,EAIlB,aAAa,EAOd,MAAM,YAAY,CAAC;AAcpB,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,oBAAoB,CAiC3D,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAc,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kBAAkB,EAIlB,aAAa,EAOd,MAAM,YAAY,CAAC;AAcpB,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,oBAAoB,CAkC3D,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAc,CAAC"}
@@ -28,9 +28,11 @@ exports.createNodes = [
28
28
  const targetsCache = new internal_1.PluginCache(cachePath);
29
29
  const normalizedOptions = normalizeOptions(options);
30
30
  const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)();
31
- const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
31
+ const packageManager = (0, devkit_1.detectPackageManager)(context.workspaceRoot);
32
+ const pmc = (0, devkit_1.getPackageManagerCommand)(packageManager);
33
+ const lockFileName = (0, js_1.getLockFileName)(packageManager);
32
34
  try {
33
- return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, isTsSolutionSetup, pmc), configFilePaths, normalizedOptions, context);
35
+ return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, isTsSolutionSetup, pmc, lockFileName), configFilePaths, normalizedOptions, context);
34
36
  }
35
37
  finally {
36
38
  targetsCache.writeToDisk();
@@ -38,7 +40,7 @@ exports.createNodes = [
38
40
  },
39
41
  ];
40
42
  exports.createNodesV2 = exports.createNodes;
41
- async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup, pmc) {
43
+ async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup, pmc, lockFileName) {
42
44
  const projectRoot = (0, path_1.dirname)(configFilePath);
43
45
  // Do not create a project if package.json and project.json isn't there.
44
46
  const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
@@ -46,7 +48,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
46
48
  !siblingFiles.includes('project.json')) {
47
49
  return {};
48
50
  }
49
- const hash = await (0, internal_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
51
+ const hash = await (0, internal_1.calculateHashForCreateNodes)(projectRoot, options, context, [lockFileName]);
50
52
  if (!targetsCache.has(hash)) {
51
53
  targetsCache.set(hash, await createWebpackTargets(configFilePath, projectRoot, options, context, isTsSolutionSetup, pmc));
52
54
  }