@nestjs/cli 11.0.18 → 11.0.19
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/generate.action.js +1 -1
- package/actions/info.action.js +1 -1
- package/actions/start.action.d.ts +1 -0
- package/actions/start.action.js +13 -10
- package/lib/compiler/compiler.js +4 -2
- package/lib/compiler/watch-compiler.js +1 -0
- package/lib/configuration/configuration.d.ts +2 -2
- package/package.json +7 -7
|
@@ -61,7 +61,7 @@ const generateFiles = async (inputs) => {
|
|
|
61
61
|
// Only overwrite if the appName is not the default- as it has already been loaded above
|
|
62
62
|
generateSpec = (0, project_utils_1.shouldGenerateSpec)(configuration, schematic, selectedProjectName, specValue, specOptions.passedAsInput);
|
|
63
63
|
generateFlat = (0, project_utils_1.shouldGenerateFlat)(configuration, selectedProjectName, flatValue);
|
|
64
|
-
generateSpecFileSuffix = (0, project_utils_1.getSpecFileSuffix)(configuration,
|
|
64
|
+
generateSpecFileSuffix = (0, project_utils_1.getSpecFileSuffix)(configuration, selectedProjectName, specFileSuffixValue);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
if (configuration.generateOptions?.baseDir) {
|
package/actions/info.action.js
CHANGED
|
@@ -35,7 +35,7 @@ class InfoAction extends abstract_action_1.AbstractAction {
|
|
|
35
35
|
}
|
|
36
36
|
async displaySystemInformation() {
|
|
37
37
|
console.info((0, ansis_1.green) `[System Information]`);
|
|
38
|
-
console.info('OS Version :', (0, ansis_1.blue)((0, os_info_utils_1.default)((0, os_1.platform)(), (0, os_1.release)()) + (0, os_1.release)()));
|
|
38
|
+
console.info('OS Version :', (0, ansis_1.blue)((0, os_info_utils_1.default)((0, os_1.platform)(), (0, os_1.release)()) + ' ' + (0, os_1.release)()));
|
|
39
39
|
console.info('NodeJS Version :', (0, ansis_1.blue)(process.version));
|
|
40
40
|
await this.displayPackageManagerVersion();
|
|
41
41
|
}
|
|
@@ -5,6 +5,7 @@ export declare class StartAction extends BuildAction {
|
|
|
5
5
|
createOnSuccessHook(entryFile: string, sourceRoot: string, debugFlag: boolean | string | undefined, outDirName: string, binaryToRun: string, options: {
|
|
6
6
|
shell: boolean;
|
|
7
7
|
envFile?: string[];
|
|
8
|
+
watch?: boolean;
|
|
8
9
|
}): () => void;
|
|
9
10
|
private spawnChildProcess;
|
|
10
11
|
}
|
package/actions/start.action.js
CHANGED
|
@@ -39,6 +39,7 @@ class StartAction extends build_action_1.BuildAction {
|
|
|
39
39
|
const onSuccess = this.createOnSuccessHook(entryFile, sourceRoot, debugFlag, outDir, binaryToRun, {
|
|
40
40
|
shell: useShell,
|
|
41
41
|
envFile,
|
|
42
|
+
watch: isWatchEnabled,
|
|
42
43
|
});
|
|
43
44
|
await this.runBuild(commandInputs, commandOptions, isWatchEnabled, isWatchAssetsEnabled, !!debugFlag, onSuccess);
|
|
44
45
|
}
|
|
@@ -54,16 +55,18 @@ class StartAction extends build_action_1.BuildAction {
|
|
|
54
55
|
createOnSuccessHook(entryFile, sourceRoot, debugFlag, outDirName, binaryToRun, options) {
|
|
55
56
|
let childProcessRef;
|
|
56
57
|
process.on('exit', () => childProcessRef && (0, tree_kill_1.treeKillSync)(childProcessRef.pid));
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
childProcessRef
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
if (!options.watch) {
|
|
59
|
+
const signalHandler = (signal) => {
|
|
60
|
+
if (childProcessRef) {
|
|
61
|
+
childProcessRef.kill(signal);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
process.exit();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
process.on('SIGINT', signalHandler);
|
|
68
|
+
process.on('SIGTERM', signalHandler);
|
|
69
|
+
}
|
|
67
70
|
return () => {
|
|
68
71
|
if (childProcessRef) {
|
|
69
72
|
childProcessRef.removeAllListeners('exit');
|
package/lib/compiler/compiler.js
CHANGED
|
@@ -34,10 +34,12 @@ class Compiler extends base_compiler_1.BaseCompiler {
|
|
|
34
34
|
const afterDeclarations = plugins.afterDeclarationsHooks.map((hook) => hook(programRef));
|
|
35
35
|
const emitResult = program.emit(undefined, undefined, undefined, undefined, {
|
|
36
36
|
before: tsconfigPathsPlugin
|
|
37
|
-
? before
|
|
37
|
+
? [tsconfigPathsPlugin, ...before]
|
|
38
38
|
: before,
|
|
39
39
|
after,
|
|
40
|
-
afterDeclarations
|
|
40
|
+
afterDeclarations: tsconfigPathsPlugin
|
|
41
|
+
? [tsconfigPathsPlugin, ...afterDeclarations]
|
|
42
|
+
: afterDeclarations,
|
|
41
43
|
});
|
|
42
44
|
const errorsCount = this.reportAfterCompilationDiagnostic(program, emitResult, tsBinary, formatHost);
|
|
43
45
|
if (errorsCount) {
|
|
@@ -56,6 +56,7 @@ class WatchCompiler extends base_compiler_1.BaseCompiler {
|
|
|
56
56
|
const afterDeclarations = plugins.afterDeclarationsHooks.map((hook) => hook(program.getProgram()));
|
|
57
57
|
if (tsconfigPathsPlugin) {
|
|
58
58
|
before.unshift(tsconfigPathsPlugin);
|
|
59
|
+
afterDeclarations.unshift(tsconfigPathsPlugin);
|
|
59
60
|
}
|
|
60
61
|
transforms.before = before.concat(transforms.before || []);
|
|
61
62
|
transforms.after = after.concat(transforms.after || []);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Asset =
|
|
1
|
+
export type Asset = string | AssetEntry;
|
|
2
2
|
export interface AssetEntry {
|
|
3
3
|
glob: string;
|
|
4
4
|
include?: string;
|
|
@@ -52,7 +52,7 @@ export interface CompilerOptions {
|
|
|
52
52
|
*/
|
|
53
53
|
webpackConfigPath?: string;
|
|
54
54
|
plugins?: string[] | PluginOptions[];
|
|
55
|
-
assets?:
|
|
55
|
+
assets?: Asset[];
|
|
56
56
|
deleteOutDir?: boolean;
|
|
57
57
|
manualRestart?: boolean;
|
|
58
58
|
builder?: Builder;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.19",
|
|
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": "19.2.
|
|
42
|
-
"@angular-devkit/schematics": "19.2.
|
|
43
|
-
"@angular-devkit/schematics-cli": "19.2.
|
|
41
|
+
"@angular-devkit/core": "19.2.24",
|
|
42
|
+
"@angular-devkit/schematics": "19.2.24",
|
|
43
|
+
"@angular-devkit/schematics-cli": "19.2.24",
|
|
44
44
|
"@inquirer/prompts": "7.10.1",
|
|
45
45
|
"@nestjs/schematics": "^11.0.1",
|
|
46
46
|
"ansis": "4.2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tsconfig-paths": "4.2.0",
|
|
55
55
|
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
56
56
|
"typescript": "5.9.3",
|
|
57
|
-
"webpack": "5.
|
|
57
|
+
"webpack": "5.106.0",
|
|
58
58
|
"webpack-node-externals": "3.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@types/node": "24.12.2",
|
|
68
68
|
"@types/node-emoji": "1.8.2",
|
|
69
69
|
"@types/webpack-node-externals": "3.0.4",
|
|
70
|
-
"@typescript-eslint/eslint-plugin": "8.58.
|
|
71
|
-
"@typescript-eslint/parser": "8.58.
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "8.58.1",
|
|
71
|
+
"@typescript-eslint/parser": "8.58.1",
|
|
72
72
|
"delete-empty": "3.0.0",
|
|
73
73
|
"eslint": "10.2.0",
|
|
74
74
|
"eslint-config-prettier": "10.1.8",
|