@nx/node 20.5.0-beta.3 → 20.5.0-canary.20250129-3f5e863

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-beta.3",
3
+ "version": "20.5.0-canary.20250129-3f5e863",
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-beta.3",
36
- "@nx/jest": "20.5.0-beta.3",
37
- "@nx/js": "20.5.0-beta.3",
38
- "@nx/eslint": "20.5.0-beta.3"
35
+ "@nx/devkit": "20.5.0-canary.20250129-3f5e863",
36
+ "@nx/jest": "20.5.0-canary.20250129-3f5e863",
37
+ "@nx/js": "20.5.0-canary.20250129-3f5e863",
38
+ "@nx/eslint": "20.5.0-canary.20250129-3f5e863"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -166,9 +166,7 @@ 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.isUsingTsSolutionConfig
170
- ? 'dist'
171
- : (0, devkit_1.joinPathFragments)((0, devkit_1.offsetFromRoot)(options.appProjectRoot), 'dist', options.rootProject ? options.name : options.appProjectRoot),
169
+ outputPath: options.outputPath,
172
170
  main: './src/main' + (options.js ? '.js' : '.ts'),
173
171
  tsConfig: './tsconfig.app.json',
174
172
  assets: ['./src/assets'],
@@ -484,9 +482,7 @@ async function normalizeOptions(host, options) {
484
482
  unitTestRunner: options.unitTestRunner ?? 'jest',
485
483
  rootProject: options.rootProject ?? false,
486
484
  port: options.port ?? 3000,
487
- outputPath: isUsingTsSolutionConfig
488
- ? (0, devkit_1.joinPathFragments)(appProjectRoot, 'dist')
489
- : (0, devkit_1.joinPathFragments)('dist', options.rootProject ? options.name : appProjectRoot),
485
+ outputPath: (0, devkit_1.joinPathFragments)('dist', options.rootProject ? options.name : appProjectRoot),
490
486
  isUsingTsSolutionConfig,
491
487
  swcJest,
492
488
  };
@@ -4,7 +4,7 @@ const { join } = require('path');
4
4
 
5
5
  module.exports = {
6
6
  output: {
7
- path: join(__dirname, '<%= webpackPluginOptions.outputPath %>'),
7
+ path: join(__dirname, '<%= offset %><%= webpackPluginOptions.outputPath %>'),
8
8
  },
9
9
  plugins: [
10
10
  new NxAppWebpackPlugin({