@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.
Files changed (196) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +42 -0
  3. package/actions/abstract.action.d.ts +4 -0
  4. package/actions/abstract.action.js +6 -0
  5. package/actions/add.action.d.ts +12 -0
  6. package/actions/add.action.js +113 -0
  7. package/actions/build.action.d.ts +22 -0
  8. package/actions/build.action.js +145 -0
  9. package/actions/generate.action.d.ts +5 -0
  10. package/actions/generate.action.js +97 -0
  11. package/actions/index.d.ts +7 -0
  12. package/actions/index.js +23 -0
  13. package/actions/info.action.d.ts +35 -0
  14. package/actions/info.action.js +181 -0
  15. package/actions/new.action.d.ts +7 -0
  16. package/actions/new.action.js +186 -0
  17. package/actions/start.action.d.ts +10 -0
  18. package/actions/start.action.js +122 -0
  19. package/bin/nest.d.ts +2 -0
  20. package/bin/nest.js +25 -0
  21. package/changes.json +54 -0
  22. package/commands/abstract.command.d.ts +7 -0
  23. package/commands/abstract.command.js +9 -0
  24. package/commands/add.command.d.ts +5 -0
  25. package/commands/add.command.js +36 -0
  26. package/commands/build.command.d.ts +5 -0
  27. package/commands/build.command.js +74 -0
  28. package/commands/command.input.d.ts +5 -0
  29. package/commands/command.input.js +2 -0
  30. package/commands/command.loader.d.ts +5 -0
  31. package/commands/command.loader.js +31 -0
  32. package/commands/generate.command.d.ts +9 -0
  33. package/commands/generate.command.js +107 -0
  34. package/commands/index.d.ts +2 -0
  35. package/commands/index.js +18 -0
  36. package/commands/info.command.d.ts +5 -0
  37. package/commands/info.command.js +16 -0
  38. package/commands/new.command.d.ts +5 -0
  39. package/commands/new.command.js +61 -0
  40. package/commands/start.command.d.ts +5 -0
  41. package/commands/start.command.js +104 -0
  42. package/lib/compiler/assets-manager.d.ts +15 -0
  43. package/lib/compiler/assets-manager.js +129 -0
  44. package/lib/compiler/base-compiler.d.ts +9 -0
  45. package/lib/compiler/base-compiler.js +26 -0
  46. package/lib/compiler/compiler.d.ts +12 -0
  47. package/lib/compiler/compiler.js +61 -0
  48. package/lib/compiler/defaults/swc-defaults.d.ts +61 -0
  49. package/lib/compiler/defaults/swc-defaults.js +57 -0
  50. package/lib/compiler/defaults/webpack-defaults.d.ts +3 -0
  51. package/lib/compiler/defaults/webpack-defaults.js +104 -0
  52. package/lib/compiler/helpers/append-extension.d.ts +1 -0
  53. package/lib/compiler/helpers/append-extension.js +7 -0
  54. package/lib/compiler/helpers/copy-path-resolve.d.ts +7 -0
  55. package/lib/compiler/helpers/copy-path-resolve.js +25 -0
  56. package/lib/compiler/helpers/delete-out-dir.d.ts +2 -0
  57. package/lib/compiler/helpers/delete-out-dir.js +12 -0
  58. package/lib/compiler/helpers/get-builder.d.ts +21 -0
  59. package/lib/compiler/helpers/get-builder.js +19 -0
  60. package/lib/compiler/helpers/get-tsc-config.path.d.ts +10 -0
  61. package/lib/compiler/helpers/get-tsc-config.path.js +24 -0
  62. package/lib/compiler/helpers/get-value-or-default.d.ts +4 -0
  63. package/lib/compiler/helpers/get-value-or-default.js +66 -0
  64. package/lib/compiler/helpers/get-webpack-config-path.d.ts +10 -0
  65. package/lib/compiler/helpers/get-webpack-config-path.js +23 -0
  66. package/lib/compiler/helpers/manual-restart.d.ts +2 -0
  67. package/lib/compiler/helpers/manual-restart.js +17 -0
  68. package/lib/compiler/helpers/tsconfig-provider.d.ts +11 -0
  69. package/lib/compiler/helpers/tsconfig-provider.js +22 -0
  70. package/lib/compiler/hooks/tsconfig-paths.hook.d.ts +2 -0
  71. package/lib/compiler/hooks/tsconfig-paths.hook.js +76 -0
  72. package/lib/compiler/interfaces/readonly-visitor.interface.d.ts +10 -0
  73. package/lib/compiler/interfaces/readonly-visitor.interface.js +2 -0
  74. package/lib/compiler/plugins/plugin-metadata-generator.d.ts +58 -0
  75. package/lib/compiler/plugins/plugin-metadata-generator.js +84 -0
  76. package/lib/compiler/plugins/plugin-metadata-printer.d.ts +17 -0
  77. package/lib/compiler/plugins/plugin-metadata-printer.js +51 -0
  78. package/lib/compiler/plugins/plugins-loader.d.ts +30 -0
  79. package/lib/compiler/plugins/plugins-loader.js +70 -0
  80. package/lib/compiler/swc/constants.d.ts +9 -0
  81. package/lib/compiler/swc/constants.js +13 -0
  82. package/lib/compiler/swc/forked-type-checker.d.ts +1 -0
  83. package/lib/compiler/swc/forked-type-checker.js +63 -0
  84. package/lib/compiler/swc/swc-compiler.d.ts +25 -0
  85. package/lib/compiler/swc/swc-compiler.js +231 -0
  86. package/lib/compiler/swc/type-checker-host.d.ts +14 -0
  87. package/lib/compiler/swc/type-checker-host.js +90 -0
  88. package/lib/compiler/typescript-loader.d.ts +6 -0
  89. package/lib/compiler/typescript-loader.js +31 -0
  90. package/lib/compiler/watch-compiler.d.ts +22 -0
  91. package/lib/compiler/watch-compiler.js +89 -0
  92. package/lib/compiler/webpack-compiler.d.ts +21 -0
  93. package/lib/compiler/webpack-compiler.js +99 -0
  94. package/lib/configuration/configuration.d.ts +91 -0
  95. package/lib/configuration/configuration.js +2 -0
  96. package/lib/configuration/configuration.loader.d.ts +4 -0
  97. package/lib/configuration/configuration.loader.js +2 -0
  98. package/lib/configuration/defaults.d.ts +6 -0
  99. package/lib/configuration/defaults.js +86 -0
  100. package/lib/configuration/index.d.ts +3 -0
  101. package/lib/configuration/index.js +19 -0
  102. package/lib/configuration/nest-configuration.loader.d.ts +8 -0
  103. package/lib/configuration/nest-configuration.loader.js +61 -0
  104. package/lib/package-managers/abstract.package-manager.d.ts +25 -0
  105. package/lib/package-managers/abstract.package-manager.js +151 -0
  106. package/lib/package-managers/index.d.ts +8 -0
  107. package/lib/package-managers/index.js +24 -0
  108. package/lib/package-managers/npm.package-manager.d.ts +7 -0
  109. package/lib/package-managers/npm.package-manager.js +26 -0
  110. package/lib/package-managers/package-manager-commands.d.ts +9 -0
  111. package/lib/package-managers/package-manager-commands.js +2 -0
  112. package/lib/package-managers/package-manager.d.ts +5 -0
  113. package/lib/package-managers/package-manager.factory.d.ts +6 -0
  114. package/lib/package-managers/package-manager.factory.js +41 -0
  115. package/lib/package-managers/package-manager.js +9 -0
  116. package/lib/package-managers/pnpm.package-manager.d.ts +7 -0
  117. package/lib/package-managers/pnpm.package-manager.js +27 -0
  118. package/lib/package-managers/project.dependency.d.ts +4 -0
  119. package/lib/package-managers/project.dependency.js +2 -0
  120. package/lib/package-managers/yarn.package-manager.d.ts +7 -0
  121. package/lib/package-managers/yarn.package-manager.js +26 -0
  122. package/lib/questions/questions.d.ts +9 -0
  123. package/lib/questions/questions.js +27 -0
  124. package/lib/readers/file-system.reader.d.ts +8 -0
  125. package/lib/readers/file-system.reader.js +46 -0
  126. package/lib/readers/index.d.ts +2 -0
  127. package/lib/readers/index.js +18 -0
  128. package/lib/readers/reader.d.ts +10 -0
  129. package/lib/readers/reader.js +11 -0
  130. package/lib/runners/abstract.runner.d.ts +11 -0
  131. package/lib/runners/abstract.runner.js +47 -0
  132. package/lib/runners/git.runner.d.ts +4 -0
  133. package/lib/runners/git.runner.js +10 -0
  134. package/lib/runners/index.d.ts +3 -0
  135. package/lib/runners/index.js +19 -0
  136. package/lib/runners/npm.runner.d.ts +4 -0
  137. package/lib/runners/npm.runner.js +10 -0
  138. package/lib/runners/pnpm.runner.d.ts +4 -0
  139. package/lib/runners/pnpm.runner.js +10 -0
  140. package/lib/runners/runner.d.ts +6 -0
  141. package/lib/runners/runner.factory.d.ts +8 -0
  142. package/lib/runners/runner.factory.js +26 -0
  143. package/lib/runners/runner.js +10 -0
  144. package/lib/runners/schematic.runner.d.ts +6 -0
  145. package/lib/runners/schematic.runner.js +21 -0
  146. package/lib/runners/yarn.runner.d.ts +4 -0
  147. package/lib/runners/yarn.runner.js +10 -0
  148. package/lib/schematics/abstract.collection.d.ts +12 -0
  149. package/lib/schematics/abstract.collection.js +23 -0
  150. package/lib/schematics/collection.d.ts +3 -0
  151. package/lib/schematics/collection.factory.d.ts +5 -0
  152. package/lib/schematics/collection.factory.js +19 -0
  153. package/lib/schematics/collection.js +7 -0
  154. package/lib/schematics/custom.collection.d.ts +10 -0
  155. package/lib/schematics/custom.collection.js +33 -0
  156. package/lib/schematics/index.d.ts +4 -0
  157. package/lib/schematics/index.js +20 -0
  158. package/lib/schematics/nest.collection.d.ts +15 -0
  159. package/lib/schematics/nest.collection.js +126 -0
  160. package/lib/schematics/schematic.option.d.ts +8 -0
  161. package/lib/schematics/schematic.option.js +44 -0
  162. package/lib/ui/banner.d.ts +1 -0
  163. package/lib/ui/banner.js +12 -0
  164. package/lib/ui/emojis.d.ts +19 -0
  165. package/lib/ui/emojis.js +23 -0
  166. package/lib/ui/errors.d.ts +4 -0
  167. package/lib/ui/errors.js +8 -0
  168. package/lib/ui/index.d.ts +5 -0
  169. package/lib/ui/index.js +21 -0
  170. package/lib/ui/messages.d.ts +24 -0
  171. package/lib/ui/messages.js +32 -0
  172. package/lib/ui/prefixes.d.ts +2 -0
  173. package/lib/ui/prefixes.js +6 -0
  174. package/lib/utils/formatting.d.ts +8 -0
  175. package/lib/utils/formatting.js +18 -0
  176. package/lib/utils/get-default-tsconfig-path.d.ts +1 -0
  177. package/lib/utils/get-default-tsconfig-path.js +12 -0
  178. package/lib/utils/gracefully-exit-on-prompt-error.d.ts +1 -0
  179. package/lib/utils/gracefully-exit-on-prompt-error.js +11 -0
  180. package/lib/utils/is-module-available.d.ts +1 -0
  181. package/lib/utils/is-module-available.js +12 -0
  182. package/lib/utils/load-configuration.d.ts +2 -0
  183. package/lib/utils/load-configuration.js +9 -0
  184. package/lib/utils/local-binaries.d.ts +3 -0
  185. package/lib/utils/local-binaries.js +15 -0
  186. package/lib/utils/os-info.utils.d.ts +1 -0
  187. package/lib/utils/os-info.utils.js +23 -0
  188. package/lib/utils/project-utils.d.ts +11 -0
  189. package/lib/utils/project-utils.js +83 -0
  190. package/lib/utils/remaining-flags.d.ts +2 -0
  191. package/lib/utils/remaining-flags.js +36 -0
  192. package/lib/utils/tree-kill.d.ts +1 -0
  193. package/lib/utils/tree-kill.js +68 -0
  194. package/lib/utils/type-assertions.d.ts +1 -0
  195. package/lib/utils/type-assertions.js +8 -0
  196. 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[]>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertNonArray = assertNonArray;
4
+ function assertNonArray(value) {
5
+ if (Array.isArray(value)) {
6
+ throw new TypeError('Expected a non-array value');
7
+ }
8
+ }
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
+ }