@nestjs/cli 7.5.7 → 7.6.0
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/new.action.js
CHANGED
|
@@ -170,7 +170,7 @@ const print = (color = null) => (str = '') => {
|
|
|
170
170
|
}
|
|
171
171
|
console.log(leftPadding, str);
|
|
172
172
|
};
|
|
173
|
-
|
|
173
|
+
const retrieveCols = () => {
|
|
174
174
|
const defaultCols = 80;
|
|
175
175
|
try {
|
|
176
176
|
const terminalCols = child_process_1.execSync('tput cols', {
|
|
@@ -182,4 +182,6 @@ exports.retrieveCols = () => {
|
|
|
182
182
|
return defaultCols;
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
exports.
|
|
185
|
+
exports.retrieveCols = retrieveCols;
|
|
186
|
+
const exit = () => process.exit(1);
|
|
187
|
+
exports.exit = exit;
|
|
@@ -8,7 +8,7 @@ const defaults_1 = require("../../configuration/defaults");
|
|
|
8
8
|
const append_extension_1 = require("../helpers/append-extension");
|
|
9
9
|
const webpack = require("webpack");
|
|
10
10
|
const nodeExternals = require("webpack-node-externals");
|
|
11
|
-
|
|
11
|
+
const webpackDefaultsFactory = (sourceRoot, relativeSourceRoot, entryFilename, isDebugEnabled = false, tsConfigFile = defaults_1.defaultConfiguration.compilerOptions.tsConfigPath, plugins) => ({
|
|
12
12
|
entry: append_extension_1.appendTsExtension(path_1.join(sourceRoot, entryFilename)),
|
|
13
13
|
devtool: isDebugEnabled ? 'inline-source-map' : false,
|
|
14
14
|
target: 'node',
|
|
@@ -83,6 +83,7 @@ exports.webpackDefaultsFactory = (sourceRoot, relativeSourceRoot, entryFilename,
|
|
|
83
83
|
}),
|
|
84
84
|
],
|
|
85
85
|
});
|
|
86
|
+
exports.webpackDefaultsFactory = webpackDefaultsFactory;
|
|
86
87
|
function isAnyPluginRegistered(plugins) {
|
|
87
88
|
return ((plugins.afterHooks && plugins.afterHooks.length > 0) ||
|
|
88
89
|
(plugins.beforeHooks && plugins.beforeHooks.length > 0));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateSelect = exports.generateInput = void 0;
|
|
4
|
-
|
|
4
|
+
const generateInput = (name, message) => {
|
|
5
5
|
return (defaultAnswer) => ({
|
|
6
6
|
type: 'input',
|
|
7
7
|
name,
|
|
@@ -9,7 +9,8 @@ exports.generateInput = (name, message) => {
|
|
|
9
9
|
default: defaultAnswer,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.generateInput = generateInput;
|
|
13
|
+
const generateSelect = (name) => {
|
|
13
14
|
return (message) => {
|
|
14
15
|
return (choices) => ({
|
|
15
16
|
type: 'list',
|
|
@@ -19,3 +20,4 @@ exports.generateSelect = (name) => {
|
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
};
|
|
23
|
+
exports.generateSelect = generateSelect;
|
package/lib/utils/is-error.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isError(e: Record<string, any> | undefined):
|
|
1
|
+
export declare function isError(e: Record<string, any> | undefined): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@angular-devkit/schematics": "11.2.6",
|
|
48
48
|
"@angular-devkit/schematics-cli": "0.1102.6",
|
|
49
49
|
"@nestjs/schematics": "^7.3.0",
|
|
50
|
-
"@types/webpack": "5.0.0",
|
|
51
50
|
"chalk": "3.0.0",
|
|
52
51
|
"chokidar": "3.5.1",
|
|
53
52
|
"cli-table3": "0.5.1",
|
|
@@ -78,6 +77,7 @@
|
|
|
78
77
|
"@types/os-name": "3.1.0",
|
|
79
78
|
"@types/rimraf": "3.0.0",
|
|
80
79
|
"@types/shelljs": "0.8.8",
|
|
80
|
+
"@types/webpack": "5.0.0",
|
|
81
81
|
"@types/webpack-node-externals": "2.5.1",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "4.19.0",
|
|
83
83
|
"@typescript-eslint/parser": "4.19.0",
|