@nestjs/cli 7.5.5 → 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/LICENSE +4 -2
- package/actions/new.action.js +4 -2
- package/lib/compiler/defaults/webpack-defaults.js +2 -1
- package/lib/compiler/webpack-compiler.d.ts +1 -1
- package/lib/compiler/webpack-compiler.js +1 -1
- package/lib/questions/questions.js +4 -2
- package/lib/utils/is-error.d.ts +1 -1
- package/package.json +26 -26
package/LICENSE
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
(The MIT License)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2017
|
|
3
|
+
Copyright (c) 2017-2020
|
|
4
|
+
Kamil Mysliwiec <https://kamilmysliwiec.com>
|
|
5
|
+
Thomas Ricart <thomasr2309@gmail.com>
|
|
4
6
|
|
|
5
7
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
8
|
a copy of this software and associated documentation files (the
|
|
@@ -19,4 +21,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
19
21
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
22
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
23
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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));
|
|
@@ -5,5 +5,5 @@ import webpack = require('webpack');
|
|
|
5
5
|
export declare class WebpackCompiler {
|
|
6
6
|
private readonly pluginsLoader;
|
|
7
7
|
constructor(pluginsLoader: PluginsLoader);
|
|
8
|
-
run(configuration: Required<Configuration>, webpackConfigFactoryOrConfig: (config: webpack.Configuration) => webpack.Configuration, tsConfigPath: string, appName: string, isDebugEnabled: boolean | undefined, watchMode: boolean | undefined, assetsManager: AssetsManager, onSuccess?: () => void): void;
|
|
8
|
+
run(configuration: Required<Configuration>, webpackConfigFactoryOrConfig: (config: webpack.Configuration, webpackRef: typeof webpack) => webpack.Configuration, tsConfigPath: string, appName: string, isDebugEnabled: boolean | undefined, watchMode: boolean | undefined, assetsManager: AssetsManager, onSuccess?: () => void): void;
|
|
9
9
|
}
|
|
@@ -29,7 +29,7 @@ class WebpackCompiler {
|
|
|
29
29
|
const defaultOptions = webpack_defaults_1.webpackDefaultsFactory(pathToSource, entryFileRoot, entryFile, isDebugEnabled, tsConfigPath, plugins);
|
|
30
30
|
const projectWebpackOptions = typeof webpackConfigFactoryOrConfig !== 'function'
|
|
31
31
|
? webpackConfigFactoryOrConfig
|
|
32
|
-
: webpackConfigFactoryOrConfig(defaultOptions);
|
|
32
|
+
: webpackConfigFactoryOrConfig(defaultOptions, webpack);
|
|
33
33
|
const webpackConfiguration = Object.assign(Object.assign({}, defaultOptions), projectWebpackOptions);
|
|
34
34
|
const compiler = webpack(webpackConfiguration);
|
|
35
35
|
const afterCallback = (err, stats) => {
|
|
@@ -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"
|
|
@@ -43,56 +43,56 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/nestjs/nest-cli#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@angular-devkit/core": "11.2.
|
|
47
|
-
"@angular-devkit/schematics": "11.2.
|
|
48
|
-
"@angular-devkit/schematics-cli": "0.1102.
|
|
49
|
-
"@nestjs/schematics": "^7.
|
|
50
|
-
"@types/webpack": "4.41.26",
|
|
46
|
+
"@angular-devkit/core": "11.2.6",
|
|
47
|
+
"@angular-devkit/schematics": "11.2.6",
|
|
48
|
+
"@angular-devkit/schematics-cli": "0.1102.6",
|
|
49
|
+
"@nestjs/schematics": "^7.3.0",
|
|
51
50
|
"chalk": "3.0.0",
|
|
52
51
|
"chokidar": "3.5.1",
|
|
53
52
|
"cli-table3": "0.5.1",
|
|
54
53
|
"commander": "4.1.1",
|
|
55
|
-
"fork-ts-checker-webpack-plugin": "6.
|
|
54
|
+
"fork-ts-checker-webpack-plugin": "6.2.0",
|
|
56
55
|
"inquirer": "7.3.3",
|
|
57
56
|
"node-emoji": "1.10.0",
|
|
58
|
-
"ora": "5.
|
|
57
|
+
"ora": "5.4.0",
|
|
59
58
|
"os-name": "4.0.0",
|
|
60
59
|
"rimraf": "3.0.2",
|
|
61
60
|
"shelljs": "0.8.4",
|
|
62
61
|
"tree-kill": "1.2.2",
|
|
63
62
|
"tsconfig-paths": "3.9.0",
|
|
64
|
-
"tsconfig-paths-webpack-plugin": "3.
|
|
65
|
-
"typescript": "4.
|
|
66
|
-
"webpack": "5.
|
|
63
|
+
"tsconfig-paths-webpack-plugin": "3.5.1",
|
|
64
|
+
"typescript": "4.2.3",
|
|
65
|
+
"webpack": "5.28.0",
|
|
67
66
|
"webpack-node-externals": "2.5.2"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "
|
|
71
|
-
"@commitlint/config-angular": "
|
|
69
|
+
"@commitlint/cli": "12.0.1",
|
|
70
|
+
"@commitlint/config-angular": "12.0.1",
|
|
72
71
|
"@types/copyfiles": "2.4.0",
|
|
73
72
|
"@types/inquirer": "7.3.1",
|
|
74
|
-
"@types/jest": "26.0.
|
|
75
|
-
"@types/node": "
|
|
73
|
+
"@types/jest": "26.0.22",
|
|
74
|
+
"@types/node": "14.14.36",
|
|
76
75
|
"@types/node-emoji": "1.8.1",
|
|
77
|
-
"@types/ora": "3.
|
|
78
|
-
"@types/os-name": "
|
|
76
|
+
"@types/ora": "3.2.0",
|
|
77
|
+
"@types/os-name": "3.1.0",
|
|
79
78
|
"@types/rimraf": "3.0.0",
|
|
80
79
|
"@types/shelljs": "0.8.8",
|
|
81
|
-
"@types/webpack
|
|
82
|
-
"@
|
|
83
|
-
"@typescript-eslint/
|
|
80
|
+
"@types/webpack": "5.0.0",
|
|
81
|
+
"@types/webpack-node-externals": "2.5.1",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "4.19.0",
|
|
83
|
+
"@typescript-eslint/parser": "4.19.0",
|
|
84
84
|
"delete-empty": "3.0.0",
|
|
85
|
-
"eslint": "7.
|
|
86
|
-
"eslint-config-prettier": "
|
|
85
|
+
"eslint": "7.22.0",
|
|
86
|
+
"eslint-config-prettier": "8.1.0",
|
|
87
87
|
"eslint-plugin-import": "2.22.1",
|
|
88
88
|
"gulp": "4.0.2",
|
|
89
89
|
"gulp-clean": "0.4.0",
|
|
90
|
-
"husky": "5.0
|
|
90
|
+
"husky": "5.2.0",
|
|
91
91
|
"jest": "26.6.3",
|
|
92
92
|
"prettier": "2.2.1",
|
|
93
|
-
"release-it": "14.
|
|
94
|
-
"ts-jest": "26.5.
|
|
95
|
-
"ts-loader": "8.0.
|
|
93
|
+
"release-it": "14.5.0",
|
|
94
|
+
"ts-jest": "26.5.4",
|
|
95
|
+
"ts-loader": "8.0.18",
|
|
96
96
|
"ts-node": "9.1.1"
|
|
97
97
|
},
|
|
98
98
|
"husky": {
|