@nx/node 20.5.0-canary.20250204-bc4ded0 → 20.5.0-canary.20250208-c0fd00d
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": "20.5.0-canary.
|
3
|
+
"version": "20.5.0-canary.20250208-c0fd00d",
|
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": "20.5.0-canary.
|
36
|
-
"@nx/jest": "20.5.0-canary.
|
37
|
-
"@nx/js": "20.5.0-canary.
|
38
|
-
"@nx/eslint": "20.5.0-canary.
|
35
|
+
"@nx/devkit": "20.5.0-canary.20250208-c0fd00d",
|
36
|
+
"@nx/jest": "20.5.0-canary.20250208-c0fd00d",
|
37
|
+
"@nx/js": "20.5.0-canary.20250208-c0fd00d",
|
38
|
+
"@nx/eslint": "20.5.0-canary.20250208-c0fd00d"
|
39
39
|
},
|
40
40
|
"publishConfig": {
|
41
41
|
"access": "public"
|
@@ -166,7 +166,9 @@ function addAppFiles(tree, options) {
|
|
166
166
|
rootTsConfigPath: (0, js_1.getRelativePathToRootTsConfig)(tree, options.appProjectRoot),
|
167
167
|
webpackPluginOptions: (0, has_webpack_plugin_1.hasWebpackPlugin)(tree)
|
168
168
|
? {
|
169
|
-
outputPath: options.
|
169
|
+
outputPath: options.isUsingTsSolutionConfig
|
170
|
+
? 'dist'
|
171
|
+
: (0, devkit_1.joinPathFragments)((0, devkit_1.offsetFromRoot)(options.appProjectRoot), 'dist', options.rootProject ? options.name : options.appProjectRoot),
|
170
172
|
main: './src/main' + (options.js ? '.js' : '.ts'),
|
171
173
|
tsConfig: './tsconfig.app.json',
|
172
174
|
assets: ['./src/assets'],
|
@@ -482,7 +484,9 @@ async function normalizeOptions(host, options) {
|
|
482
484
|
unitTestRunner: options.unitTestRunner ?? 'jest',
|
483
485
|
rootProject: options.rootProject ?? false,
|
484
486
|
port: options.port ?? 3000,
|
485
|
-
outputPath:
|
487
|
+
outputPath: isUsingTsSolutionConfig
|
488
|
+
? (0, devkit_1.joinPathFragments)(appProjectRoot, 'dist')
|
489
|
+
: (0, devkit_1.joinPathFragments)('dist', options.rootProject ? options.name : appProjectRoot),
|
486
490
|
isUsingTsSolutionConfig,
|
487
491
|
swcJest,
|
488
492
|
};
|