@nx/node 19.5.7 → 19.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/node",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.6.0-beta.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
|
6
6
|
"repository": {
|
@@ -32,11 +32,11 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"tslib": "^2.3.0",
|
35
|
-
"@nx/devkit": "19.
|
36
|
-
"@nx/jest": "19.
|
37
|
-
"@nx/js": "19.
|
38
|
-
"@nx/eslint": "19.
|
39
|
-
"@nrwl/node": "19.
|
35
|
+
"@nx/devkit": "19.6.0-beta.1",
|
36
|
+
"@nx/jest": "19.6.0-beta.1",
|
37
|
+
"@nx/js": "19.6.0-beta.1",
|
38
|
+
"@nx/eslint": "19.6.0-beta.1",
|
39
|
+
"@nrwl/node": "19.6.0-beta.1"
|
40
40
|
},
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|
@@ -15,7 +15,7 @@ const e2e_project_1 = require("../e2e-project/e2e-project");
|
|
15
15
|
const init_1 = require("../init/init");
|
16
16
|
const setup_docker_1 = require("../setup-docker/setup-docker");
|
17
17
|
const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
|
18
|
-
const
|
18
|
+
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
19
19
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
20
20
|
function getWebpackBuildConfig(project, options) {
|
21
21
|
return {
|
@@ -105,12 +105,12 @@ function addProject(tree, options) {
|
|
105
105
|
tags: options.parsedTags,
|
106
106
|
};
|
107
107
|
if (options.bundler === 'esbuild') {
|
108
|
-
(0,
|
108
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, '@nx/esbuild:esbuild');
|
109
109
|
project.targets.build = getEsBuildConfig(project, options);
|
110
110
|
}
|
111
111
|
else if (options.bundler === 'webpack') {
|
112
112
|
if (!(0, has_webpack_plugin_1.hasWebpackPlugin)(tree)) {
|
113
|
-
(0,
|
113
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, `@nx/webpack:webpack`);
|
114
114
|
project.targets.build = getWebpackBuildConfig(project, options);
|
115
115
|
}
|
116
116
|
}
|
@@ -10,7 +10,7 @@ const add_swc_dependencies_1 = require("@nx/js/src/utils/swc/add-swc-dependencie
|
|
10
10
|
const path_1 = require("path");
|
11
11
|
const versions_1 = require("../../utils/versions");
|
12
12
|
const init_1 = require("../init/init");
|
13
|
-
const
|
13
|
+
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
14
14
|
async function libraryGenerator(tree, schema) {
|
15
15
|
return await libraryGeneratorInternal(tree, {
|
16
16
|
addPlugin: false,
|
@@ -114,7 +114,7 @@ function updateProject(tree, options) {
|
|
114
114
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
|
115
115
|
const rootProject = options.projectRoot === '.' || options.projectRoot === '';
|
116
116
|
project.targets = project.targets || {};
|
117
|
-
(0,
|
117
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, `@nx/js:${options.compiler}`);
|
118
118
|
project.targets.build = {
|
119
119
|
executor: `@nx/js:${options.compiler}`,
|
120
120
|
outputs: ['{options.outputPath}'],
|