@nestjs/cli 8.1.1 → 8.1.2

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/CONTRIBUTING.md CHANGED
@@ -127,8 +127,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
127
127
  // We're working on auto-documentation.
128
128
  * All public API methods **must be documented**. (Details TBC). -->
129
129
  * We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at
130
- **100 characters**. An automated formatter is available, see
131
- [DEVELOPER.md](docs/DEVELOPER.md#clang-format).
130
+ **100 characters**. An automated formatter is available ( `npm run format` ).
132
131
 
133
132
  ## <a name="commit"></a> Commit Message Guidelines
134
133
 
@@ -217,7 +216,6 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
217
216
  <!-- [coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md -->
218
217
  [commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
219
218
  [corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
220
- [dev-doc]: https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md
221
219
  [github]: https://github.com/nestjs/nest
222
220
  [gitter]: https://gitter.im/nestjs/nest
223
221
  [individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
@@ -25,6 +25,7 @@ class NewCommand extends abstract_command_1.AbstractCommand {
25
25
  .option('-p, --package-manager [package-manager]', 'Specify package manager.')
26
26
  .option('-l, --language [language]', 'Programming language to be used (TypeScript or JavaScript).')
27
27
  .option('-c, --collection [collectionName]', 'Schematics collection to use.')
28
+ .option('--strict', 'Enables strict mode in TypeScript.')
28
29
  .action((name, command) => __awaiter(this, void 0, void 0, function* () {
29
30
  const options = [];
30
31
  const availableLanguages = ['js', 'ts', 'javascript', 'typescript'];
@@ -32,6 +33,7 @@ class NewCommand extends abstract_command_1.AbstractCommand {
32
33
  options.push({ name: 'dry-run', value: !!command.dryRun });
33
34
  options.push({ name: 'skip-git', value: !!command.skipGit });
34
35
  options.push({ name: 'skip-install', value: !!command.skipInstall });
36
+ options.push({ name: 'strict', value: !!command.strict });
35
37
  options.push({
36
38
  name: 'package-manager',
37
39
  value: command.packageManager,
@@ -29,7 +29,7 @@ const webpackDefaultsFactory = (sourceRoot, relativeSourceRoot, entryFilename, i
29
29
  getCustomTransformers: (program) => ({
30
30
  before: plugins.beforeHooks.map((hook) => hook(program)),
31
31
  after: plugins.afterHooks.map((hook) => hook(program)),
32
- afterDeclaratqions: plugins.afterDeclarationsHooks.map((hook) => hook(program)),
32
+ afterDeclarations: plugins.afterDeclarationsHooks.map((hook) => hook(program)),
33
33
  }),
34
34
  },
35
35
  },
@@ -30,7 +30,7 @@ class WebpackCompiler {
30
30
  const projectWebpackOptions = typeof webpackConfigFactoryOrConfig !== 'function'
31
31
  ? webpackConfigFactoryOrConfig
32
32
  : webpackConfigFactoryOrConfig(defaultOptions, webpack);
33
- const webpackConfiguration = Object.assign(Object.assign({}, defaultOptions), projectWebpackOptions);
33
+ const webpackConfiguration = Object.assign(Object.assign(Object.assign({}, defaultOptions), { mode: watchMode ? 'development' : defaultOptions.mode }), projectWebpackOptions);
34
34
  const compiler = webpack(webpackConfiguration);
35
35
  const afterCallback = (err, stats) => {
36
36
  if (err && stats === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/cli",
3
- "version": "8.1.1",
3
+ "version": "8.1.2",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@cli)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,57 +43,57 @@
43
43
  },
44
44
  "homepage": "https://github.com/nestjs/nest-cli#readme",
45
45
  "dependencies": {
46
- "@angular-devkit/core": "12.1.4",
47
- "@angular-devkit/schematics": "12.1.4",
48
- "@angular-devkit/schematics-cli": "12.1.4",
49
- "@nestjs/schematics": "^8.0.0",
46
+ "@angular-devkit/core": "12.2.7",
47
+ "@angular-devkit/schematics": "12.2.7",
48
+ "@angular-devkit/schematics-cli": "12.2.7",
49
+ "@nestjs/schematics": "^8.0.3",
50
50
  "chalk": "3.0.0",
51
51
  "chokidar": "3.5.2",
52
52
  "cli-table3": "0.5.1",
53
53
  "commander": "4.1.1",
54
- "fork-ts-checker-webpack-plugin": "6.3.1",
54
+ "fork-ts-checker-webpack-plugin": "6.3.3",
55
55
  "inquirer": "7.3.3",
56
- "node-emoji": "1.10.0",
56
+ "node-emoji": "1.11.0",
57
57
  "ora": "5.4.1",
58
58
  "os-name": "4.0.1",
59
59
  "rimraf": "3.0.2",
60
60
  "shelljs": "0.8.4",
61
- "source-map-support": "0.5.19",
61
+ "source-map-support": "0.5.20",
62
62
  "tree-kill": "1.2.2",
63
- "tsconfig-paths": "3.10.1",
63
+ "tsconfig-paths": "3.11.0",
64
64
  "tsconfig-paths-webpack-plugin": "3.5.1",
65
65
  "typescript": "4.3.5",
66
66
  "webpack": "5.45.1",
67
67
  "webpack-node-externals": "3.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@commitlint/cli": "13.1.0",
71
- "@commitlint/config-angular": "13.1.0",
70
+ "@commitlint/cli": "13.2.0",
71
+ "@commitlint/config-angular": "13.2.0",
72
72
  "@types/copyfiles": "2.4.1",
73
73
  "@types/inquirer": "7.3.3",
74
- "@types/jest": "26.0.24",
75
- "@types/node": "14.17.7",
74
+ "@types/jest": "27.0.2",
75
+ "@types/node": "14.17.19",
76
76
  "@types/node-emoji": "1.8.1",
77
77
  "@types/ora": "3.2.0",
78
78
  "@types/os-name": "3.1.0",
79
- "@types/rimraf": "3.0.1",
79
+ "@types/rimraf": "3.0.2",
80
80
  "@types/shelljs": "0.8.9",
81
81
  "@types/webpack-node-externals": "2.5.2",
82
- "@typescript-eslint/eslint-plugin": "4.28.5",
83
- "@typescript-eslint/parser": "4.28.5",
82
+ "@typescript-eslint/eslint-plugin": "4.32.0",
83
+ "@typescript-eslint/parser": "4.32.0",
84
84
  "delete-empty": "3.0.0",
85
85
  "eslint": "7.32.0",
86
86
  "eslint-config-prettier": "8.3.0",
87
- "eslint-plugin-import": "2.23.4",
87
+ "eslint-plugin-import": "2.24.2",
88
88
  "gulp": "4.0.2",
89
89
  "gulp-clean": "0.4.0",
90
- "husky": "7.0.1",
91
- "jest": "27.0.6",
92
- "prettier": "2.3.2",
93
- "release-it": "14.10.1",
94
- "ts-jest": "27.0.4",
95
- "ts-loader": "9.2.4",
96
- "ts-node": "10.1.0"
90
+ "husky": "7.0.2",
91
+ "jest": "27.2.3",
92
+ "prettier": "2.4.1",
93
+ "release-it": "14.11.6",
94
+ "ts-jest": "27.0.5",
95
+ "ts-loader": "9.2.6",
96
+ "ts-node": "10.2.1"
97
97
  },
98
98
  "husky": {
99
99
  "hooks": {