@nx/webpack 21.2.2 → 21.3.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "21.2.2",
3
+ "version": "21.3.0-beta.0",
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.2.1",
67
67
  "webpack-node-externals": "^3.0.0",
68
68
  "webpack-subresource-integrity": "^5.1.0",
69
- "@nx/devkit": "21.2.2",
70
- "@nx/js": "21.2.2"
69
+ "@nx/devkit": "21.3.0-beta.0",
70
+ "@nx/js": "21.3.0-beta.0"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -37,7 +37,14 @@ class GeneratePackageJsonPlugin {
37
37
  packageJson.main = packageJson.main ?? this.options.outputFileName;
38
38
  compilation.emitAsset('package.json', new webpack_1.sources.RawSource((0, devkit_1.serializeJson)(packageJson)));
39
39
  const packageManager = (0, devkit_1.detectPackageManager)(this.options.root);
40
- compilation.emitAsset((0, js_1.getLockFileName)(packageManager), new webpack_1.sources.RawSource((0, js_1.createLockFile)(packageJson, this.options.projectGraph, packageManager)));
40
+ if (packageManager === 'bun') {
41
+ compilation
42
+ .getLogger('GeneratePackageJsonPlugin')
43
+ .warn('Bun lockfile generation is not supported. Only package.json will be generated.');
44
+ }
45
+ else {
46
+ compilation.emitAsset((0, js_1.getLockFileName)(packageManager), new webpack_1.sources.RawSource((0, js_1.createLockFile)(packageJson, this.options.projectGraph, packageManager)));
47
+ }
41
48
  });
42
49
  });
43
50
  }