@nx/node 0.0.0-pr-29464-33a818b → 0.0.0-pr-29993-f89d4dd
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": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-29993-f89d4dd",
|
|
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,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.3.0",
|
|
35
|
-
"@nx/devkit": "0.0.0-pr-
|
|
36
|
-
"@nx/jest": "0.0.0-pr-
|
|
37
|
-
"@nx/js": "0.0.0-pr-
|
|
38
|
-
"@nx/eslint": "0.0.0-pr-
|
|
35
|
+
"@nx/devkit": "0.0.0-pr-29993-f89d4dd",
|
|
36
|
+
"@nx/jest": "0.0.0-pr-29993-f89d4dd",
|
|
37
|
+
"@nx/js": "0.0.0-pr-29993-f89d4dd",
|
|
38
|
+
"@nx/eslint": "0.0.0-pr-29993-f89d4dd"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -78,6 +78,7 @@ function getEsBuildConfig(project, options) {
|
|
|
78
78
|
}
|
|
79
79
|
function getServeConfig(options) {
|
|
80
80
|
return {
|
|
81
|
+
continuous: true,
|
|
81
82
|
executor: '@nx/js:node',
|
|
82
83
|
defaultConfiguration: 'development',
|
|
83
84
|
// Run build, which includes dependency on "^build" by default, so the first run
|
|
@@ -191,10 +192,16 @@ function addAppFiles(tree, options) {
|
|
|
191
192
|
}
|
|
192
193
|
function addProxy(tree, options) {
|
|
193
194
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.frontendProject);
|
|
194
|
-
if (projectConfig.targets &&
|
|
195
|
+
if (projectConfig.targets &&
|
|
196
|
+
['serve', 'dev'].find((t) => !!projectConfig.targets[t])) {
|
|
197
|
+
const targetName = ['serve', 'dev'].find((t) => !!projectConfig.targets[t]);
|
|
198
|
+
projectConfig.targets[targetName].dependsOn = [
|
|
199
|
+
...(projectConfig.targets[targetName].dependsOn ?? []),
|
|
200
|
+
`${options.name}:serve`,
|
|
201
|
+
];
|
|
195
202
|
const pathToProxyFile = `${projectConfig.root}/proxy.conf.json`;
|
|
196
|
-
projectConfig.targets.
|
|
197
|
-
...projectConfig.targets.
|
|
203
|
+
projectConfig.targets[targetName].options = {
|
|
204
|
+
...projectConfig.targets[targetName].options,
|
|
198
205
|
proxyConfig: pathToProxyFile,
|
|
199
206
|
};
|
|
200
207
|
if (!tree.exists(pathToProxyFile)) {
|