@nx/rspack 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,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/rspack",
3
3
  "description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
4
- "version": "21.2.2",
4
+ "version": "21.3.0-beta.0",
5
5
  "type": "commonjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,10 +24,10 @@
24
24
  "generators": "./generators.json",
25
25
  "executors": "./executors.json",
26
26
  "dependencies": {
27
- "@nx/js": "21.2.2",
28
- "@nx/devkit": "21.2.2",
29
- "@nx/web": "21.2.2",
30
- "@nx/module-federation": "21.2.2",
27
+ "@nx/js": "21.3.0-beta.0",
28
+ "@nx/devkit": "21.3.0-beta.0",
29
+ "@nx/web": "21.3.0-beta.0",
30
+ "@nx/module-federation": "21.3.0-beta.0",
31
31
  "@phenomnomnominal/tsquery": "~5.0.1",
32
32
  "@rspack/core": "^1.3.8",
33
33
  "@rspack/dev-server": "^1.1.1",
@@ -38,7 +38,14 @@ class GeneratePackageJsonPlugin {
38
38
  packageJson.main = packageJson.main ?? this.options.outputFileName;
39
39
  compilation.emitAsset('package.json', new core_1.sources.RawSource((0, devkit_1.serializeJson)(packageJson)));
40
40
  const packageManager = (0, devkit_1.detectPackageManager)(this.context.root);
41
- compilation.emitAsset((0, js_1.getLockFileName)(packageManager), new core_1.sources.RawSource((0, js_1.createLockFile)(packageJson, this.projectGraph, packageManager)));
41
+ if (packageManager === 'bun') {
42
+ compilation
43
+ .getLogger('GeneratePackageJsonPlugin')
44
+ .warn('Bun lockfile generation is not supported. Only package.json will be generated.');
45
+ }
46
+ else {
47
+ compilation.emitAsset((0, js_1.getLockFileName)(packageManager), new core_1.sources.RawSource((0, js_1.createLockFile)(packageJson, this.projectGraph, packageManager)));
48
+ }
42
49
  });
43
50
  });
44
51
  }
@@ -37,7 +37,14 @@ class GeneratePackageJsonPlugin {
37
37
  packageJson.main = packageJson.main ?? this.options.outputFileName;
38
38
  compilation.emitAsset('package.json', new core_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 core_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 core_1.sources.RawSource((0, js_1.createLockFile)(packageJson, this.options.projectGraph, packageManager)));
47
+ }
41
48
  });
42
49
  });
43
50
  }