@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 CHANGED
@@ -1,6 +1,8 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017 Kerry Ritter <http://www.kerryritter.com/>
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.
@@ -170,7 +170,7 @@ const print = (color = null) => (str = '') => {
170
170
  }
171
171
  console.log(leftPadding, str);
172
172
  };
173
- exports.retrieveCols = () => {
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.exit = () => process.exit(1);
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
- exports.webpackDefaultsFactory = (sourceRoot, relativeSourceRoot, entryFilename, isDebugEnabled = false, tsConfigFile = defaults_1.defaultConfiguration.compilerOptions.tsConfigPath, plugins) => ({
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
- exports.generateInput = (name, message) => {
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.generateSelect = (name) => {
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;
@@ -1 +1 @@
1
- export declare function isError(e: Record<string, any> | undefined): boolean;
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.5.5",
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.0",
47
- "@angular-devkit/schematics": "11.2.0",
48
- "@angular-devkit/schematics-cli": "0.1102.0",
49
- "@nestjs/schematics": "^7.1.0",
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.1.0",
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.3.0",
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.3.0",
65
- "typescript": "4.1.5",
66
- "webpack": "5.11.0",
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": "11.0.0",
71
- "@commitlint/config-angular": "11.0.0",
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.20",
75
- "@types/node": "12.20.1",
73
+ "@types/jest": "26.0.22",
74
+ "@types/node": "14.14.36",
76
75
  "@types/node-emoji": "1.8.1",
77
- "@types/ora": "3.1.0",
78
- "@types/os-name": "2.0.0",
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-node-externals": "2.5.0",
82
- "@typescript-eslint/eslint-plugin": "^2.19.0",
83
- "@typescript-eslint/parser": "^2.19.0",
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.20.0",
86
- "eslint-config-prettier": "7.2.0",
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.9",
90
+ "husky": "5.2.0",
91
91
  "jest": "26.6.3",
92
92
  "prettier": "2.2.1",
93
- "release-it": "14.4.0",
94
- "ts-jest": "26.5.1",
95
- "ts-loader": "8.0.17",
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": {