@nestjs/cli 10.1.0-next.3 → 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.
package/actions/build.action.js
CHANGED
|
@@ -84,7 +84,8 @@ class BuildAction extends abstract_action_1.AbstractAction {
|
|
|
84
84
|
}
|
|
85
85
|
runWebpack(configuration, appName, commandOptions, pathToTsconfig, debug, watchMode, onSuccess) {
|
|
86
86
|
const webpackCompiler = new webpack_compiler_1.WebpackCompiler(this.pluginsLoader);
|
|
87
|
-
const webpackPath = (0, get_webpack_config_path_1.getWebpackConfigPath)(configuration, commandOptions, appName)
|
|
87
|
+
const webpackPath = (0, get_webpack_config_path_1.getWebpackConfigPath)(configuration, commandOptions, appName) ??
|
|
88
|
+
defaults_1.defaultWebpackConfigFilename;
|
|
88
89
|
const webpackConfigFactoryOrConfig = this.getWebpackConfigFactoryByPath(webpackPath, defaults_1.defaultWebpackConfigFilename);
|
|
89
90
|
return webpackCompiler.run(configuration, pathToTsconfig, appName, {
|
|
90
91
|
inputs: commandOptions,
|
|
@@ -15,7 +15,11 @@ function getTscConfigPath(configuration, cmdOptions, appName) {
|
|
|
15
15
|
if (tsconfigPath) {
|
|
16
16
|
return tsconfigPath;
|
|
17
17
|
}
|
|
18
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/nestjs/nest-cli#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@angular-devkit/core": "16.1.
|
|
42
|
-
"@angular-devkit/schematics": "16.1.
|
|
43
|
-
"@angular-devkit/schematics-cli": "16.1.
|
|
41
|
+
"@angular-devkit/core": "16.1.3",
|
|
42
|
+
"@angular-devkit/schematics": "16.1.3",
|
|
43
|
+
"@angular-devkit/schematics-cli": "16.1.3",
|
|
44
44
|
"@nestjs/schematics": "^10.0.1",
|
|
45
45
|
"chalk": "4.1.2",
|
|
46
46
|
"chokidar": "3.5.3",
|
|
@@ -57,35 +57,35 @@
|
|
|
57
57
|
"tree-kill": "1.2.2",
|
|
58
58
|
"tsconfig-paths": "4.2.0",
|
|
59
59
|
"tsconfig-paths-webpack-plugin": "4.0.1",
|
|
60
|
-
"typescript": "5.1.
|
|
61
|
-
"webpack": "5.
|
|
60
|
+
"typescript": "5.1.6",
|
|
61
|
+
"webpack": "5.88.1",
|
|
62
62
|
"webpack-node-externals": "3.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@commitlint/cli": "17.6.6",
|
|
66
66
|
"@commitlint/config-angular": "17.6.6",
|
|
67
67
|
"@swc/cli": "0.1.62",
|
|
68
|
-
"@swc/core": "1.3.
|
|
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.
|
|
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.
|
|
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",
|
|
82
82
|
"husky": "8.0.3",
|
|
83
83
|
"jest": "29.5.0",
|
|
84
|
-
"lint-staged": "13.2.
|
|
84
|
+
"lint-staged": "13.2.3",
|
|
85
85
|
"prettier": "2.8.8",
|
|
86
86
|
"release-it": "15.11.0",
|
|
87
|
-
"ts-jest": "29.1.
|
|
88
|
-
"ts-loader": "9.4.
|
|
87
|
+
"ts-jest": "29.1.1",
|
|
88
|
+
"ts-loader": "9.4.4"
|
|
89
89
|
},
|
|
90
90
|
"lint-staged": {
|
|
91
91
|
"**/*.{ts,json}": []
|