@nx/node 0.0.0-pr-29705-bc2a0dd → 0.0.0-pr-29408-73bb882

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-29705-bc2a0dd",
3
+ "version": "0.0.0-pr-29408-73bb882",
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-29705-bc2a0dd",
36
- "@nx/jest": "0.0.0-pr-29705-bc2a0dd",
37
- "@nx/js": "0.0.0-pr-29705-bc2a0dd",
38
- "@nx/eslint": "0.0.0-pr-29705-bc2a0dd"
35
+ "@nx/devkit": "0.0.0-pr-29408-73bb882",
36
+ "@nx/jest": "0.0.0-pr-29408-73bb882",
37
+ "@nx/js": "0.0.0-pr-29408-73bb882",
38
+ "@nx/eslint": "0.0.0-pr-29408-73bb882"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -467,6 +467,8 @@ async function normalizeOptions(host, options) {
467
467
  const nxJson = (0, devkit_1.readNxJson)(host);
468
468
  const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
469
469
  nxJson.useInferencePlugins !== false;
470
+ const isUsingTsSolutionConfig = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
471
+ const swcJest = options.swcJest ?? isUsingTsSolutionConfig;
470
472
  return {
471
473
  addPlugin,
472
474
  ...options,
@@ -481,7 +483,8 @@ async function normalizeOptions(host, options) {
481
483
  rootProject: options.rootProject ?? false,
482
484
  port: options.port ?? 3000,
483
485
  outputPath: (0, devkit_1.joinPathFragments)('dist', options.rootProject ? options.name : appProjectRoot),
484
- isUsingTsSolutionConfig: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host),
486
+ isUsingTsSolutionConfig,
487
+ swcJest,
485
488
  };
486
489
  }
487
490
  exports.default = applicationGenerator;
@@ -69,8 +69,7 @@
69
69
  },
70
70
  "swcJest": {
71
71
  "type": "boolean",
72
- "description": "Use `@swc/jest` instead `ts-jest` for faster test compilation.",
73
- "default": false
72
+ "description": "Use `@swc/jest` instead `ts-jest` for faster test compilation."
74
73
  },
75
74
  "babelJest": {
76
75
  "type": "boolean",
@@ -10,7 +10,5 @@
10
10
  "jest.config.ts",
11
11
  "src/**/*.ts"
12
12
  ],
13
- "references": [
14
- { "path": "<%= relativeProjectReferencePath %>" }
15
- ]
13
+ "references": []
16
14
  }