@depup/nestjs__cli 11.0.16-depup.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/LICENSE +24 -0
- package/README.md +42 -0
- package/actions/abstract.action.d.ts +4 -0
- package/actions/abstract.action.js +6 -0
- package/actions/add.action.d.ts +12 -0
- package/actions/add.action.js +113 -0
- package/actions/build.action.d.ts +22 -0
- package/actions/build.action.js +145 -0
- package/actions/generate.action.d.ts +5 -0
- package/actions/generate.action.js +97 -0
- package/actions/index.d.ts +7 -0
- package/actions/index.js +23 -0
- package/actions/info.action.d.ts +35 -0
- package/actions/info.action.js +181 -0
- package/actions/new.action.d.ts +7 -0
- package/actions/new.action.js +186 -0
- package/actions/start.action.d.ts +10 -0
- package/actions/start.action.js +122 -0
- package/bin/nest.d.ts +2 -0
- package/bin/nest.js +25 -0
- package/changes.json +54 -0
- package/commands/abstract.command.d.ts +7 -0
- package/commands/abstract.command.js +9 -0
- package/commands/add.command.d.ts +5 -0
- package/commands/add.command.js +36 -0
- package/commands/build.command.d.ts +5 -0
- package/commands/build.command.js +74 -0
- package/commands/command.input.d.ts +5 -0
- package/commands/command.input.js +2 -0
- package/commands/command.loader.d.ts +5 -0
- package/commands/command.loader.js +31 -0
- package/commands/generate.command.d.ts +9 -0
- package/commands/generate.command.js +107 -0
- package/commands/index.d.ts +2 -0
- package/commands/index.js +18 -0
- package/commands/info.command.d.ts +5 -0
- package/commands/info.command.js +16 -0
- package/commands/new.command.d.ts +5 -0
- package/commands/new.command.js +61 -0
- package/commands/start.command.d.ts +5 -0
- package/commands/start.command.js +104 -0
- package/lib/compiler/assets-manager.d.ts +15 -0
- package/lib/compiler/assets-manager.js +129 -0
- package/lib/compiler/base-compiler.d.ts +9 -0
- package/lib/compiler/base-compiler.js +26 -0
- package/lib/compiler/compiler.d.ts +12 -0
- package/lib/compiler/compiler.js +61 -0
- package/lib/compiler/defaults/swc-defaults.d.ts +61 -0
- package/lib/compiler/defaults/swc-defaults.js +57 -0
- package/lib/compiler/defaults/webpack-defaults.d.ts +3 -0
- package/lib/compiler/defaults/webpack-defaults.js +104 -0
- package/lib/compiler/helpers/append-extension.d.ts +1 -0
- package/lib/compiler/helpers/append-extension.js +7 -0
- package/lib/compiler/helpers/copy-path-resolve.d.ts +7 -0
- package/lib/compiler/helpers/copy-path-resolve.js +25 -0
- package/lib/compiler/helpers/delete-out-dir.d.ts +2 -0
- package/lib/compiler/helpers/delete-out-dir.js +12 -0
- package/lib/compiler/helpers/get-builder.d.ts +21 -0
- package/lib/compiler/helpers/get-builder.js +19 -0
- package/lib/compiler/helpers/get-tsc-config.path.d.ts +10 -0
- package/lib/compiler/helpers/get-tsc-config.path.js +24 -0
- package/lib/compiler/helpers/get-value-or-default.d.ts +4 -0
- package/lib/compiler/helpers/get-value-or-default.js +66 -0
- package/lib/compiler/helpers/get-webpack-config-path.d.ts +10 -0
- package/lib/compiler/helpers/get-webpack-config-path.js +23 -0
- package/lib/compiler/helpers/manual-restart.d.ts +2 -0
- package/lib/compiler/helpers/manual-restart.js +17 -0
- package/lib/compiler/helpers/tsconfig-provider.d.ts +11 -0
- package/lib/compiler/helpers/tsconfig-provider.js +22 -0
- package/lib/compiler/hooks/tsconfig-paths.hook.d.ts +2 -0
- package/lib/compiler/hooks/tsconfig-paths.hook.js +76 -0
- package/lib/compiler/interfaces/readonly-visitor.interface.d.ts +10 -0
- package/lib/compiler/interfaces/readonly-visitor.interface.js +2 -0
- package/lib/compiler/plugins/plugin-metadata-generator.d.ts +58 -0
- package/lib/compiler/plugins/plugin-metadata-generator.js +84 -0
- package/lib/compiler/plugins/plugin-metadata-printer.d.ts +17 -0
- package/lib/compiler/plugins/plugin-metadata-printer.js +51 -0
- package/lib/compiler/plugins/plugins-loader.d.ts +30 -0
- package/lib/compiler/plugins/plugins-loader.js +70 -0
- package/lib/compiler/swc/constants.d.ts +9 -0
- package/lib/compiler/swc/constants.js +13 -0
- package/lib/compiler/swc/forked-type-checker.d.ts +1 -0
- package/lib/compiler/swc/forked-type-checker.js +63 -0
- package/lib/compiler/swc/swc-compiler.d.ts +25 -0
- package/lib/compiler/swc/swc-compiler.js +231 -0
- package/lib/compiler/swc/type-checker-host.d.ts +14 -0
- package/lib/compiler/swc/type-checker-host.js +90 -0
- package/lib/compiler/typescript-loader.d.ts +6 -0
- package/lib/compiler/typescript-loader.js +31 -0
- package/lib/compiler/watch-compiler.d.ts +22 -0
- package/lib/compiler/watch-compiler.js +89 -0
- package/lib/compiler/webpack-compiler.d.ts +21 -0
- package/lib/compiler/webpack-compiler.js +99 -0
- package/lib/configuration/configuration.d.ts +91 -0
- package/lib/configuration/configuration.js +2 -0
- package/lib/configuration/configuration.loader.d.ts +4 -0
- package/lib/configuration/configuration.loader.js +2 -0
- package/lib/configuration/defaults.d.ts +6 -0
- package/lib/configuration/defaults.js +86 -0
- package/lib/configuration/index.d.ts +3 -0
- package/lib/configuration/index.js +19 -0
- package/lib/configuration/nest-configuration.loader.d.ts +8 -0
- package/lib/configuration/nest-configuration.loader.js +61 -0
- package/lib/package-managers/abstract.package-manager.d.ts +25 -0
- package/lib/package-managers/abstract.package-manager.js +151 -0
- package/lib/package-managers/index.d.ts +8 -0
- package/lib/package-managers/index.js +24 -0
- package/lib/package-managers/npm.package-manager.d.ts +7 -0
- package/lib/package-managers/npm.package-manager.js +26 -0
- package/lib/package-managers/package-manager-commands.d.ts +9 -0
- package/lib/package-managers/package-manager-commands.js +2 -0
- package/lib/package-managers/package-manager.d.ts +5 -0
- package/lib/package-managers/package-manager.factory.d.ts +6 -0
- package/lib/package-managers/package-manager.factory.js +41 -0
- package/lib/package-managers/package-manager.js +9 -0
- package/lib/package-managers/pnpm.package-manager.d.ts +7 -0
- package/lib/package-managers/pnpm.package-manager.js +27 -0
- package/lib/package-managers/project.dependency.d.ts +4 -0
- package/lib/package-managers/project.dependency.js +2 -0
- package/lib/package-managers/yarn.package-manager.d.ts +7 -0
- package/lib/package-managers/yarn.package-manager.js +26 -0
- package/lib/questions/questions.d.ts +9 -0
- package/lib/questions/questions.js +27 -0
- package/lib/readers/file-system.reader.d.ts +8 -0
- package/lib/readers/file-system.reader.js +46 -0
- package/lib/readers/index.d.ts +2 -0
- package/lib/readers/index.js +18 -0
- package/lib/readers/reader.d.ts +10 -0
- package/lib/readers/reader.js +11 -0
- package/lib/runners/abstract.runner.d.ts +11 -0
- package/lib/runners/abstract.runner.js +47 -0
- package/lib/runners/git.runner.d.ts +4 -0
- package/lib/runners/git.runner.js +10 -0
- package/lib/runners/index.d.ts +3 -0
- package/lib/runners/index.js +19 -0
- package/lib/runners/npm.runner.d.ts +4 -0
- package/lib/runners/npm.runner.js +10 -0
- package/lib/runners/pnpm.runner.d.ts +4 -0
- package/lib/runners/pnpm.runner.js +10 -0
- package/lib/runners/runner.d.ts +6 -0
- package/lib/runners/runner.factory.d.ts +8 -0
- package/lib/runners/runner.factory.js +26 -0
- package/lib/runners/runner.js +10 -0
- package/lib/runners/schematic.runner.d.ts +6 -0
- package/lib/runners/schematic.runner.js +21 -0
- package/lib/runners/yarn.runner.d.ts +4 -0
- package/lib/runners/yarn.runner.js +10 -0
- package/lib/schematics/abstract.collection.d.ts +12 -0
- package/lib/schematics/abstract.collection.js +23 -0
- package/lib/schematics/collection.d.ts +3 -0
- package/lib/schematics/collection.factory.d.ts +5 -0
- package/lib/schematics/collection.factory.js +19 -0
- package/lib/schematics/collection.js +7 -0
- package/lib/schematics/custom.collection.d.ts +10 -0
- package/lib/schematics/custom.collection.js +33 -0
- package/lib/schematics/index.d.ts +4 -0
- package/lib/schematics/index.js +20 -0
- package/lib/schematics/nest.collection.d.ts +15 -0
- package/lib/schematics/nest.collection.js +126 -0
- package/lib/schematics/schematic.option.d.ts +8 -0
- package/lib/schematics/schematic.option.js +44 -0
- package/lib/ui/banner.d.ts +1 -0
- package/lib/ui/banner.js +12 -0
- package/lib/ui/emojis.d.ts +19 -0
- package/lib/ui/emojis.js +23 -0
- package/lib/ui/errors.d.ts +4 -0
- package/lib/ui/errors.js +8 -0
- package/lib/ui/index.d.ts +5 -0
- package/lib/ui/index.js +21 -0
- package/lib/ui/messages.d.ts +24 -0
- package/lib/ui/messages.js +32 -0
- package/lib/ui/prefixes.d.ts +2 -0
- package/lib/ui/prefixes.js +6 -0
- package/lib/utils/formatting.d.ts +8 -0
- package/lib/utils/formatting.js +18 -0
- package/lib/utils/get-default-tsconfig-path.d.ts +1 -0
- package/lib/utils/get-default-tsconfig-path.js +12 -0
- package/lib/utils/gracefully-exit-on-prompt-error.d.ts +1 -0
- package/lib/utils/gracefully-exit-on-prompt-error.js +11 -0
- package/lib/utils/is-module-available.d.ts +1 -0
- package/lib/utils/is-module-available.js +12 -0
- package/lib/utils/load-configuration.d.ts +2 -0
- package/lib/utils/load-configuration.js +9 -0
- package/lib/utils/local-binaries.d.ts +3 -0
- package/lib/utils/local-binaries.js +15 -0
- package/lib/utils/os-info.utils.d.ts +1 -0
- package/lib/utils/os-info.utils.js +23 -0
- package/lib/utils/project-utils.d.ts +11 -0
- package/lib/utils/project-utils.js +83 -0
- package/lib/utils/remaining-flags.d.ts +2 -0
- package/lib/utils/remaining-flags.js +36 -0
- package/lib/utils/tree-kill.d.ts +1 -0
- package/lib/utils/tree-kill.js +68 -0
- package/lib/utils/type-assertions.d.ts +1 -0
- package/lib/utils/type-assertions.js +8 -0
- package/package.json +161 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.treeKillSync = treeKillSync;
|
|
4
|
+
const child_process_1 = require("child_process");
|
|
5
|
+
function treeKillSync(pid, signal) {
|
|
6
|
+
if (process.platform === 'win32') {
|
|
7
|
+
(0, child_process_1.execSync)('taskkill /pid ' + pid + ' /T /F');
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const childs = getAllChilds(pid);
|
|
11
|
+
childs.forEach(function (pid) {
|
|
12
|
+
killPid(pid, signal);
|
|
13
|
+
});
|
|
14
|
+
killPid(pid, signal);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
function getAllPid() {
|
|
18
|
+
const result = (0, child_process_1.spawnSync)('ps', ['-A', '-o', 'pid,ppid'], {
|
|
19
|
+
encoding: 'utf-8',
|
|
20
|
+
stdio: 'pipe',
|
|
21
|
+
});
|
|
22
|
+
if (result.error || !result.stdout) {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
const rows = result.stdout.trim().split('\n').slice(1);
|
|
26
|
+
return rows
|
|
27
|
+
.map(function (row) {
|
|
28
|
+
const parts = row.match(/\s*(\d+)\s*(\d+)/);
|
|
29
|
+
if (parts === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
pid: Number(parts[1]),
|
|
34
|
+
ppid: Number(parts[2]),
|
|
35
|
+
};
|
|
36
|
+
})
|
|
37
|
+
.filter((input) => {
|
|
38
|
+
return input != null;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function getAllChilds(pid) {
|
|
42
|
+
const allpid = getAllPid();
|
|
43
|
+
const ppidHash = {};
|
|
44
|
+
const result = [];
|
|
45
|
+
allpid.forEach(function (item) {
|
|
46
|
+
ppidHash[item.ppid] = ppidHash[item.ppid] || [];
|
|
47
|
+
ppidHash[item.ppid].push(item.pid);
|
|
48
|
+
});
|
|
49
|
+
const find = function (pid) {
|
|
50
|
+
ppidHash[pid] = ppidHash[pid] || [];
|
|
51
|
+
ppidHash[pid].forEach(function (childPid) {
|
|
52
|
+
result.push(childPid);
|
|
53
|
+
find(childPid);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
find(pid);
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
function killPid(pid, signal) {
|
|
60
|
+
try {
|
|
61
|
+
process.kill(pid, signal);
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
if (err.code !== 'ESRCH') {
|
|
65
|
+
throw err;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assertNonArray<T>(value: T): asserts value is Exclude<T, any[]>;
|
package/package.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@depup/nestjs__cli",
|
|
3
|
+
"version": "11.0.16-depup.1",
|
|
4
|
+
"description": "Nest - modern, fast, powerful node.js web framework (@cli) (with updated dependencies)",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">= 20.11"
|
|
7
|
+
},
|
|
8
|
+
"bin": {
|
|
9
|
+
"nest": "bin/nest.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"clean": "gulp clean:bundle",
|
|
14
|
+
"format": "prettier --write \"**/*.ts\"",
|
|
15
|
+
"lint": "eslint '{lib,commands,actions}/**/*.ts' --fix",
|
|
16
|
+
"start": "node bin/nest.js",
|
|
17
|
+
"prepublish:next": "npm run build",
|
|
18
|
+
"publish:next": "npm publish --access public --tag next",
|
|
19
|
+
"prepublish:npm": "npm run build",
|
|
20
|
+
"publish:npm": "npm publish --access public",
|
|
21
|
+
"test": "jest --config test/jest-config.json",
|
|
22
|
+
"test:dev": "npm run clean && jest --config test/jest-config.json --watchAll",
|
|
23
|
+
"prerelease": "npm run build",
|
|
24
|
+
"release": "release-it"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/nestjs/nest-cli.git"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/nestjs/nest-cli/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/nestjs/nest-cli#readme",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@angular-devkit/core": "^21.2.3",
|
|
37
|
+
"@angular-devkit/schematics": "^21.2.3",
|
|
38
|
+
"@angular-devkit/schematics-cli": "^21.2.3",
|
|
39
|
+
"@inquirer/prompts": "^8.3.2",
|
|
40
|
+
"@nestjs/schematics": "^11.0.9",
|
|
41
|
+
"ansis": "4.2.0",
|
|
42
|
+
"chokidar": "^5.0.0",
|
|
43
|
+
"cli-table3": "0.6.5",
|
|
44
|
+
"commander": "^14.0.3",
|
|
45
|
+
"fork-ts-checker-webpack-plugin": "9.1.0",
|
|
46
|
+
"glob": "^13.0.6",
|
|
47
|
+
"node-emoji": "^2.2.0",
|
|
48
|
+
"ora": "^9.3.0",
|
|
49
|
+
"tsconfig-paths": "4.2.0",
|
|
50
|
+
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
51
|
+
"typescript": "^6.0.2",
|
|
52
|
+
"webpack": "^5.105.4",
|
|
53
|
+
"webpack-node-externals": "3.0.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@commitlint/cli": "20.3.1",
|
|
57
|
+
"@commitlint/config-angular": "20.3.1",
|
|
58
|
+
"@swc/cli": "0.7.10",
|
|
59
|
+
"@swc/core": "1.15.8",
|
|
60
|
+
"@types/inquirer": "9.0.9",
|
|
61
|
+
"@types/jest": "29.5.14",
|
|
62
|
+
"@types/node": "24.10.8",
|
|
63
|
+
"@types/node-emoji": "1.8.2",
|
|
64
|
+
"@types/webpack-node-externals": "3.0.4",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "8.53.0",
|
|
66
|
+
"@typescript-eslint/parser": "8.53.0",
|
|
67
|
+
"delete-empty": "3.0.0",
|
|
68
|
+
"eslint": "9.39.2",
|
|
69
|
+
"eslint-config-prettier": "10.1.8",
|
|
70
|
+
"gulp": "5.0.1",
|
|
71
|
+
"gulp-clean": "0.4.0",
|
|
72
|
+
"husky": "9.1.7",
|
|
73
|
+
"jest": "29.7.0",
|
|
74
|
+
"lint-staged": "16.2.7",
|
|
75
|
+
"prettier": "3.8.0",
|
|
76
|
+
"release-it": "19.2.3",
|
|
77
|
+
"ts-jest": "29.4.6",
|
|
78
|
+
"ts-loader": "9.5.4",
|
|
79
|
+
"ts-node": "10.9.2"
|
|
80
|
+
},
|
|
81
|
+
"lint-staged": {
|
|
82
|
+
"**/*.{ts,json}": []
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"@swc/cli": "^0.1.62 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0",
|
|
86
|
+
"@swc/core": "^1.3.62"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"@swc/cli": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"@swc/core": {
|
|
93
|
+
"optional": true
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"keywords": [
|
|
97
|
+
"@nestjs/cli",
|
|
98
|
+
"depup",
|
|
99
|
+
"updated-dependencies",
|
|
100
|
+
"security",
|
|
101
|
+
"latest",
|
|
102
|
+
"patched"
|
|
103
|
+
],
|
|
104
|
+
"depup": {
|
|
105
|
+
"changes": {
|
|
106
|
+
"@angular-devkit/core": {
|
|
107
|
+
"from": "19.2.19",
|
|
108
|
+
"to": "^21.2.3"
|
|
109
|
+
},
|
|
110
|
+
"@angular-devkit/schematics": {
|
|
111
|
+
"from": "19.2.19",
|
|
112
|
+
"to": "^21.2.3"
|
|
113
|
+
},
|
|
114
|
+
"@angular-devkit/schematics-cli": {
|
|
115
|
+
"from": "19.2.19",
|
|
116
|
+
"to": "^21.2.3"
|
|
117
|
+
},
|
|
118
|
+
"@inquirer/prompts": {
|
|
119
|
+
"from": "7.10.1",
|
|
120
|
+
"to": "^8.3.2"
|
|
121
|
+
},
|
|
122
|
+
"@nestjs/schematics": {
|
|
123
|
+
"from": "^11.0.1",
|
|
124
|
+
"to": "^11.0.9"
|
|
125
|
+
},
|
|
126
|
+
"chokidar": {
|
|
127
|
+
"from": "4.0.3",
|
|
128
|
+
"to": "^5.0.0"
|
|
129
|
+
},
|
|
130
|
+
"commander": {
|
|
131
|
+
"from": "4.1.1",
|
|
132
|
+
"to": "^14.0.3"
|
|
133
|
+
},
|
|
134
|
+
"glob": {
|
|
135
|
+
"from": "13.0.0",
|
|
136
|
+
"to": "^13.0.6"
|
|
137
|
+
},
|
|
138
|
+
"node-emoji": {
|
|
139
|
+
"from": "1.11.0",
|
|
140
|
+
"to": "^2.2.0"
|
|
141
|
+
},
|
|
142
|
+
"ora": {
|
|
143
|
+
"from": "5.4.1",
|
|
144
|
+
"to": "^9.3.0"
|
|
145
|
+
},
|
|
146
|
+
"typescript": {
|
|
147
|
+
"from": "5.9.3",
|
|
148
|
+
"to": "^6.0.2"
|
|
149
|
+
},
|
|
150
|
+
"webpack": {
|
|
151
|
+
"from": "5.104.1",
|
|
152
|
+
"to": "^5.105.4"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"depsUpdated": 12,
|
|
156
|
+
"originalPackage": "@nestjs/cli",
|
|
157
|
+
"originalVersion": "11.0.16",
|
|
158
|
+
"processedAt": "2026-03-23T16:28:27.721Z",
|
|
159
|
+
"smokeTest": "failed"
|
|
160
|
+
}
|
|
161
|
+
}
|