@nx/webpack 17.3.0-beta.4 → 17.3.0-beta.6
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": "17.3.0-beta.
|
|
3
|
+
"version": "17.3.0-beta.6",
|
|
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": {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"webpack-dev-server": "^4.9.3",
|
|
63
63
|
"webpack-node-externals": "^3.0.0",
|
|
64
64
|
"webpack-subresource-integrity": "^5.1.0",
|
|
65
|
-
"@nx/devkit": "17.3.0-beta.
|
|
66
|
-
"@nx/js": "17.3.0-beta.
|
|
67
|
-
"@nrwl/webpack": "17.3.0-beta.
|
|
65
|
+
"@nx/devkit": "17.3.0-beta.6",
|
|
66
|
+
"@nx/js": "17.3.0-beta.6",
|
|
67
|
+
"@nrwl/webpack": "17.3.0-beta.6"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
2
|
import { ConfigurationGeneratorSchema } from './schema';
|
|
3
3
|
export declare function configurationGenerator(tree: Tree, options: ConfigurationGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
4
|
export default configurationGenerator;
|
|
@@ -4,6 +4,7 @@ exports.configurationGenerator = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const init_1 = require("../init/init");
|
|
6
6
|
const has_plugin_1 = require("../../utils/has-plugin");
|
|
7
|
+
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
|
7
8
|
async function configurationGenerator(tree, options) {
|
|
8
9
|
const task = await (0, init_1.webpackInitGenerator)(tree, {
|
|
9
10
|
...options,
|
|
@@ -106,6 +107,7 @@ module.exports = composePlugins(withNx(), (config) => {
|
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
function addBuildTarget(tree, options) {
|
|
110
|
+
(0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, '@nx/webpack:webpack');
|
|
109
111
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
110
112
|
const buildOptions = {
|
|
111
113
|
target: options.target,
|
|
@@ -12,11 +12,12 @@ async function webpackInitGenerator(tree, schema) {
|
|
|
12
12
|
if (!schema.skipPackageJson) {
|
|
13
13
|
const devDependencies = {
|
|
14
14
|
'@nx/webpack': versions_1.nxVersion,
|
|
15
|
+
'@nx/web': versions_1.nxVersion,
|
|
15
16
|
};
|
|
16
17
|
if (shouldAddPlugin) {
|
|
17
18
|
devDependencies['webpack-cli'] = versions_1.webpackCliVersion;
|
|
18
19
|
}
|
|
19
|
-
installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies);
|
|
20
|
+
installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies, undefined, schema.keepExistingVersions);
|
|
20
21
|
}
|
|
21
22
|
if (!schema.skipFormat) {
|
|
22
23
|
await (0, devkit_1.formatFiles)(tree);
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"description": "Do not add dependencies to `package.json`.",
|
|
16
16
|
"type": "boolean",
|
|
17
17
|
"default": false
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
18
24
|
}
|
|
19
25
|
},
|
|
20
26
|
"required": []
|