@nestjs/cli 10.1.0 → 10.1.1

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.
@@ -15,7 +15,11 @@ function getTscConfigPath(configuration, cmdOptions, appName) {
15
15
  if (tsconfigPath) {
16
16
  return tsconfigPath;
17
17
  }
18
- tsconfigPath = (0, get_value_or_default_1.getValueOrDefault)(configuration, 'compilerOptions.builder.options.configPath', appName);
18
+ const builder = (0, get_value_or_default_1.getValueOrDefault)(configuration, 'compilerOptions.builder', appName);
19
+ tsconfigPath =
20
+ typeof builder === 'object' && builder?.type === 'tsc'
21
+ ? builder.options?.configPath
22
+ : undefined;
19
23
  return tsconfigPath ?? (0, get_default_tsconfig_path_1.getDefaultTsconfigPath)();
20
24
  }
21
25
  exports.getTscConfigPath = getTscConfigPath;
@@ -14,7 +14,11 @@ function getWebpackConfigPath(configuration, cmdOptions, appName) {
14
14
  if (webpackPath) {
15
15
  return webpackPath;
16
16
  }
17
- webpackPath = (0, get_value_or_default_1.getValueOrDefault)(configuration, 'compilerOptions.builder.options.configPath', appName);
17
+ const builder = (0, get_value_or_default_1.getValueOrDefault)(configuration, 'compilerOptions.builder', appName);
18
+ webpackPath =
19
+ typeof builder === 'object' && builder?.type === 'webpack'
20
+ ? builder.options?.configPath
21
+ : undefined;
18
22
  return webpackPath;
19
23
  }
20
24
  exports.getWebpackConfigPath = getWebpackConfigPath;
@@ -42,9 +42,6 @@ export type Builder = BuilderVariant | {
42
42
  options?: TscBuilderOptions;
43
43
  };
44
44
  export interface CompilerOptions {
45
- /**
46
- * @deprecated Use `builder.options.configPath` instead.
47
- */
48
45
  tsConfigPath?: string;
49
46
  /**
50
47
  * @deprecated Use `builder` instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/cli",
3
- "version": "10.1.0",
3
+ "version": "10.1.1",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@cli)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -68,14 +68,14 @@
68
68
  "@swc/core": "1.3.67",
69
69
  "@types/inquirer": "8.2.6",
70
70
  "@types/jest": "29.5.2",
71
- "@types/node": "18.16.18",
71
+ "@types/node": "18.16.19",
72
72
  "@types/node-emoji": "1.8.2",
73
73
  "@types/shelljs": "0.8.12",
74
74
  "@types/webpack-node-externals": "3.0.0",
75
75
  "@typescript-eslint/eslint-plugin": "5.60.1",
76
76
  "@typescript-eslint/parser": "5.60.1",
77
77
  "delete-empty": "3.0.0",
78
- "eslint": "8.43.0",
78
+ "eslint": "8.44.0",
79
79
  "eslint-config-prettier": "8.8.0",
80
80
  "gulp": "4.0.2",
81
81
  "gulp-clean": "0.4.0",