@nx/node 0.0.0-pr-30457-2f25946 → 0.0.0-pr-3-49a51e7
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-3-49a51e7",
|
|
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-3-49a51e7",
|
|
36
|
+
"@nx/jest": "0.0.0-pr-3-49a51e7",
|
|
37
|
+
"@nx/js": "0.0.0-pr-3-49a51e7",
|
|
38
|
+
"@nx/eslint": "0.0.0-pr-3-49a51e7"
|
|
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
|
|
@@ -194,10 +195,16 @@ function addAppFiles(tree, options) {
|
|
|
194
195
|
}
|
|
195
196
|
function addProxy(tree, options) {
|
|
196
197
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.frontendProject);
|
|
197
|
-
if (projectConfig.targets &&
|
|
198
|
+
if (projectConfig.targets &&
|
|
199
|
+
['serve', 'dev'].find((t) => !!projectConfig.targets[t])) {
|
|
200
|
+
const targetName = ['serve', 'dev'].find((t) => !!projectConfig.targets[t]);
|
|
201
|
+
projectConfig.targets[targetName].dependsOn = [
|
|
202
|
+
...(projectConfig.targets[targetName].dependsOn ?? []),
|
|
203
|
+
`${options.name}:serve`,
|
|
204
|
+
];
|
|
198
205
|
const pathToProxyFile = `${projectConfig.root}/proxy.conf.json`;
|
|
199
|
-
projectConfig.targets.
|
|
200
|
-
...projectConfig.targets.
|
|
206
|
+
projectConfig.targets[targetName].options = {
|
|
207
|
+
...projectConfig.targets[targetName].options,
|
|
201
208
|
proxyConfig: pathToProxyFile,
|
|
202
209
|
};
|
|
203
210
|
if (!tree.exists(pathToProxyFile)) {
|