@nx/webpack 19.6.1 → 19.7.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/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
# Nx: Smart Monorepos · Fast CI
|
|
24
24
|
|
|
25
|
-
Nx is a build system
|
|
25
|
+
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
|
|
26
26
|
|
|
27
27
|
This package is a [Webpack plugin for Nx](https://nx.dev/nx-api/webpack).
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.7.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": {
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"webpack-dev-server": "^5.0.4",
|
|
70
70
|
"webpack-node-externals": "^3.0.0",
|
|
71
71
|
"webpack-subresource-integrity": "^5.1.0",
|
|
72
|
-
"@nx/devkit": "19.
|
|
73
|
-
"@nx/js": "19.
|
|
74
|
-
"@nrwl/webpack": "19.
|
|
72
|
+
"@nx/devkit": "19.7.0-beta.0",
|
|
73
|
+
"@nx/js": "19.7.0-beta.0",
|
|
74
|
+
"@nrwl/webpack": "19.7.0-beta.0"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"type": "boolean",
|
|
164
164
|
"description": "Generates a `package.json` and pruned lock file with the project's `node_module` dependencies populated for installing in a container. If a `package.json` exists in the project's directory, it will be reused with dependencies populated."
|
|
165
165
|
},
|
|
166
|
+
"skipPackageManager": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"description": "Do not add a `packageManager` entry to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
169
|
+
},
|
|
166
170
|
"transformers": {
|
|
167
171
|
"type": "array",
|
|
168
172
|
"description": "List of TypeScript Compiler Transfomers Plugins.",
|
|
@@ -3,6 +3,7 @@ import { type ProjectGraph } from '@nx/devkit';
|
|
|
3
3
|
export declare class GeneratePackageJsonPlugin implements WebpackPluginInstance {
|
|
4
4
|
private readonly options;
|
|
5
5
|
constructor(options: {
|
|
6
|
+
skipPackageManager?: boolean;
|
|
6
7
|
tsConfig: string;
|
|
7
8
|
outputFileName: string;
|
|
8
9
|
root: string;
|
|
@@ -32,6 +32,7 @@ class GeneratePackageJsonPlugin {
|
|
|
32
32
|
root: this.options.root,
|
|
33
33
|
isProduction: true,
|
|
34
34
|
helperDependencies: helperDependencies.map((dep) => dep.target),
|
|
35
|
+
skipPackageManager: this.options.skipPackageManager,
|
|
35
36
|
});
|
|
36
37
|
packageJson.main = packageJson.main ?? this.options.outputFileName;
|
|
37
38
|
compilation.emitAsset('package.json', new webpack_1.sources.RawSource((0, devkit_1.serializeJson)(packageJson)));
|
|
@@ -158,6 +158,10 @@ export interface NxAppWebpackPluginOptions {
|
|
|
158
158
|
* External scripts that will be included before the main application entry.
|
|
159
159
|
*/
|
|
160
160
|
scripts?: Array<ExtraEntryPointClass | string>;
|
|
161
|
+
/**
|
|
162
|
+
* Do not add a `packageManager` entry to the generated package.json file. Only works in conjunction with `generatePackageJson` option.
|
|
163
|
+
*/
|
|
164
|
+
skipPackageManager?: boolean;
|
|
161
165
|
/**
|
|
162
166
|
* Skip type checking. Default is `false`.
|
|
163
167
|
*/
|