@nx/node 0.0.0-pr-30565-ba2942e → 0.0.0-pr-29464-73fdcbb
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-29464-73fdcbb",
|
|
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-29464-73fdcbb",
|
|
36
|
+
"@nx/jest": "0.0.0-pr-29464-73fdcbb",
|
|
37
|
+
"@nx/js": "0.0.0-pr-29464-73fdcbb",
|
|
38
|
+
"@nx/eslint": "0.0.0-pr-29464-73fdcbb"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -78,7 +78,6 @@ function getEsBuildConfig(project, options) {
|
|
|
78
78
|
}
|
|
79
79
|
function getServeConfig(options) {
|
|
80
80
|
return {
|
|
81
|
-
continuous: true,
|
|
82
81
|
executor: '@nx/js:node',
|
|
83
82
|
defaultConfiguration: 'development',
|
|
84
83
|
// Run build, which includes dependency on "^build" by default, so the first run
|
|
@@ -195,16 +194,10 @@ function addAppFiles(tree, options) {
|
|
|
195
194
|
}
|
|
196
195
|
function addProxy(tree, options) {
|
|
197
196
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.frontendProject);
|
|
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
|
-
];
|
|
197
|
+
if (projectConfig.targets && projectConfig.targets.serve) {
|
|
205
198
|
const pathToProxyFile = `${projectConfig.root}/proxy.conf.json`;
|
|
206
|
-
projectConfig.targets
|
|
207
|
-
...projectConfig.targets
|
|
199
|
+
projectConfig.targets.serve.options = {
|
|
200
|
+
...projectConfig.targets.serve.options,
|
|
208
201
|
proxyConfig: pathToProxyFile,
|
|
209
202
|
};
|
|
210
203
|
if (!tree.exists(pathToProxyFile)) {
|