@nx/node 20.5.0-canary.20250204-bc4ded0 → 20.5.0-canary.20250207-8fb9592

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/node",
3
- "version": "20.5.0-canary.20250204-bc4ded0",
3
+ "version": "20.5.0-canary.20250207-8fb9592",
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.20250204-bc4ded0",
36
- "@nx/jest": "20.5.0-canary.20250204-bc4ded0",
37
- "@nx/js": "20.5.0-canary.20250204-bc4ded0",
38
- "@nx/eslint": "20.5.0-canary.20250204-bc4ded0"
35
+ "@nx/devkit": "20.5.0-canary.20250207-8fb9592",
36
+ "@nx/jest": "20.5.0-canary.20250207-8fb9592",
37
+ "@nx/js": "20.5.0-canary.20250207-8fb9592",
38
+ "@nx/eslint": "20.5.0-canary.20250207-8fb9592"
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.outputPath,
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: (0, devkit_1.joinPathFragments)('dist', options.rootProject ? options.name : appProjectRoot),
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
  };
@@ -4,7 +4,7 @@ const { join } = require('path');
4
4
 
5
5
  module.exports = {
6
6
  output: {
7
- path: join(__dirname, '<%= offset %><%= webpackPluginOptions.outputPath %>'),
7
+ path: join(__dirname, '<%= webpackPluginOptions.outputPath %>'),
8
8
  },
9
9
  plugins: [
10
10
  new NxAppWebpackPlugin({