@nestjs/cli 10.4.7 → 10.4.8
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
|
@@ -4,6 +4,7 @@ exports.BuildAction = void 0;
|
|
|
4
4
|
const chalk = require("chalk");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const assets_manager_1 = require("../lib/compiler/assets-manager");
|
|
7
|
+
const delete_out_dir_1 = require("../lib/compiler/helpers/delete-out-dir");
|
|
7
8
|
const get_builder_1 = require("../lib/compiler/helpers/get-builder");
|
|
8
9
|
const get_tsc_config_path_1 = require("../lib/compiler/helpers/get-tsc-config.path");
|
|
9
10
|
const get_value_or_default_1 = require("../lib/compiler/helpers/get-value-or-default");
|
|
@@ -11,7 +12,6 @@ const get_webpack_config_path_1 = require("../lib/compiler/helpers/get-webpack-c
|
|
|
11
12
|
const tsconfig_provider_1 = require("../lib/compiler/helpers/tsconfig-provider");
|
|
12
13
|
const plugins_loader_1 = require("../lib/compiler/plugins/plugins-loader");
|
|
13
14
|
const typescript_loader_1 = require("../lib/compiler/typescript-loader");
|
|
14
|
-
const delete_out_dir_1 = require("../lib/compiler/helpers/delete-out-dir");
|
|
15
15
|
const configuration_1 = require("../lib/configuration");
|
|
16
16
|
const defaults_1 = require("../lib/configuration/defaults");
|
|
17
17
|
const readers_1 = require("../lib/readers");
|
|
@@ -60,6 +60,11 @@ class BuildAction extends abstract_action_1.AbstractAction {
|
|
|
60
60
|
: (0, get_builder_1.getBuilder)(configuration, commandOptions, appName);
|
|
61
61
|
await (0, delete_out_dir_1.deleteOutDirIfEnabled)(configuration, appName, outDir);
|
|
62
62
|
this.assetsManager.copyAssets(configuration, appName, outDir, watchAssetsMode);
|
|
63
|
+
const typeCheck = (0, get_value_or_default_1.getValueOrDefault)(configuration, 'compilerOptions.typeCheck', appName, 'typeCheck', commandOptions);
|
|
64
|
+
if (typeCheck && builder.type !== 'swc') {
|
|
65
|
+
console.warn(ui_1.INFO_PREFIX +
|
|
66
|
+
` "typeCheck" will not have any effect when "builder" is not "swc".`);
|
|
67
|
+
}
|
|
63
68
|
switch (builder.type) {
|
|
64
69
|
case 'tsc':
|
|
65
70
|
return this.runTsc(watchMode, commandOptions, configuration, pathToTsconfig, appName, onSuccess);
|
|
@@ -46,10 +46,6 @@ class BuildCommand extends abstract_command_1.AbstractCommand {
|
|
|
46
46
|
name: 'builder',
|
|
47
47
|
value: command.builder,
|
|
48
48
|
});
|
|
49
|
-
if (command.typeCheck && command.builder !== 'swc') {
|
|
50
|
-
console.warn(ui_1.INFO_PREFIX +
|
|
51
|
-
` "typeCheck" will not have any effect when "builder" is not "swc".`);
|
|
52
|
-
}
|
|
53
49
|
options.push({
|
|
54
50
|
name: 'typeCheck',
|
|
55
51
|
value: command.typeCheck,
|
|
@@ -71,10 +71,6 @@ class StartCommand extends abstract_command_1.AbstractCommand {
|
|
|
71
71
|
name: 'builder',
|
|
72
72
|
value: command.builder,
|
|
73
73
|
});
|
|
74
|
-
if (command.typeCheck && command.builder !== 'swc') {
|
|
75
|
-
console.warn(ui_1.INFO_PREFIX +
|
|
76
|
-
` "typeCheck" will not have any effect when "builder" is not "swc".`);
|
|
77
|
-
}
|
|
78
74
|
options.push({
|
|
79
75
|
name: 'typeCheck',
|
|
80
76
|
value: command.typeCheck,
|
|
@@ -62,7 +62,8 @@ const webpackDefaultsFactory = (sourceRoot, relativeSourceRoot, entryFilename, i
|
|
|
62
62
|
checkResource(resource) {
|
|
63
63
|
const lazyImports = [
|
|
64
64
|
'@nestjs/microservices',
|
|
65
|
-
'
|
|
65
|
+
'@nestjs/microservices/microservices-module',
|
|
66
|
+
'@nestjs/websockets/socket-module',
|
|
66
67
|
'class-validator',
|
|
67
68
|
'class-transformer',
|
|
68
69
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.8",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -47,35 +47,35 @@
|
|
|
47
47
|
"cli-table3": "0.6.5",
|
|
48
48
|
"commander": "4.1.1",
|
|
49
49
|
"fork-ts-checker-webpack-plugin": "9.0.2",
|
|
50
|
-
"glob": "10.4.
|
|
50
|
+
"glob": "10.4.5",
|
|
51
51
|
"inquirer": "8.2.6",
|
|
52
52
|
"node-emoji": "1.11.0",
|
|
53
53
|
"ora": "5.4.1",
|
|
54
54
|
"tree-kill": "1.2.2",
|
|
55
55
|
"tsconfig-paths": "4.2.0",
|
|
56
|
-
"tsconfig-paths-webpack-plugin": "4.
|
|
56
|
+
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
57
57
|
"typescript": "5.6.3",
|
|
58
58
|
"webpack": "5.96.1",
|
|
59
59
|
"webpack-node-externals": "3.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "19.
|
|
63
|
-
"@commitlint/config-angular": "19.
|
|
64
|
-
"@swc/cli": "0.5.
|
|
65
|
-
"@swc/core": "1.
|
|
62
|
+
"@commitlint/cli": "19.6.0",
|
|
63
|
+
"@commitlint/config-angular": "19.6.0",
|
|
64
|
+
"@swc/cli": "0.5.1",
|
|
65
|
+
"@swc/core": "1.9.2",
|
|
66
66
|
"@types/inquirer": "9.0.7",
|
|
67
67
|
"@types/jest": "29.5.14",
|
|
68
|
-
"@types/node": "22.
|
|
68
|
+
"@types/node": "22.9.1",
|
|
69
69
|
"@types/node-emoji": "1.8.2",
|
|
70
70
|
"@types/webpack-node-externals": "3.0.4",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
72
|
-
"@typescript-eslint/parser": "8.
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "8.15.0",
|
|
72
|
+
"@typescript-eslint/parser": "8.15.0",
|
|
73
73
|
"delete-empty": "3.0.0",
|
|
74
|
-
"eslint": "9.
|
|
74
|
+
"eslint": "9.15.0",
|
|
75
75
|
"eslint-config-prettier": "9.1.0",
|
|
76
76
|
"gulp": "5.0.0",
|
|
77
77
|
"gulp-clean": "0.4.0",
|
|
78
|
-
"husky": "9.1.
|
|
78
|
+
"husky": "9.1.7",
|
|
79
79
|
"jest": "29.7.0",
|
|
80
80
|
"lint-staged": "15.2.10",
|
|
81
81
|
"prettier": "3.3.3",
|