@nx/webpack 16.6.0-beta.0 → 16.6.0-beta.1

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": "16.6.0-beta.0",
3
+ "version": "16.6.0-beta.1",
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": {
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.15.0",
33
- "@nrwl/webpack": "16.6.0-beta.0",
34
- "@nx/devkit": "16.6.0-beta.0",
35
- "@nx/js": "16.6.0-beta.0",
33
+ "@nrwl/webpack": "16.6.0-beta.1",
34
+ "@nx/devkit": "16.6.0-beta.1",
35
+ "@nx/js": "16.6.0-beta.1",
36
36
  "autoprefixer": "^10.4.9",
37
37
  "babel-loader": "^9.1.2",
38
38
  "browserslist": "^4.21.4",
@@ -75,5 +75,5 @@
75
75
  "access": "public"
76
76
  },
77
77
  "types": "./index.d.ts",
78
- "gitHead": "5a7ffb93c9e84bffbf52f6ae9c6c1e3b8edb9d35"
78
+ "gitHead": "cf9f5cbe6a7ce3b916ec6505dc8488f669cbc52b"
79
79
  }
@@ -78,6 +78,10 @@ function webpackExecutor(_options, context) {
78
78
  if (options.deleteOutputPath) {
79
79
  (0, fs_1.deleteOutputDir)(context.root, options.outputPath);
80
80
  }
81
+ if (options.generatePackageJson && metadata.projectType !== 'application') {
82
+ devkit_1.logger.warn((0, devkit_1.stripIndents) `The project ${context.projectName} is using the 'generatePackageJson' option which is deprecated for library projects. It should only be used for applications.
83
+ For libraries, configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks).`);
84
+ }
81
85
  const configs = yield tslib_1.__await(getWebpackConfigs(options, context));
82
86
  return yield tslib_1.__await(yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues((0, rxjs_for_await_1.eachValueFrom)((0, rxjs_1.of)(configs).pipe((0, operators_1.mergeMap)((config) => (Array.isArray(config) ? (0, rxjs_1.from)(config) : (0, rxjs_1.of)(config))),
83
87
  // Run build sequentially and bail when first one fails.