Skip to content

Commit 4880533

Browse files
Merge pull request #2403 from micalevisk/master
docs: add nestjs cli change on migration guide & docs on `--strict`
2 parents 4addfa0 + 303ac6e commit 4880533

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

content/cli/usages.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Creates and initializes a new Nest project. Prompts for package manager.
3434
| `--package-manager [package-manager]` | Specify package manager. Use `npm`, `yarn`, or `pnpm`. Package manager must be installed globally.<br/> Alias: `-p` |
3535
| `--language [language]` | Specify programming language (`TS` or `JS`).<br/> Alias: `-l` |
3636
| `--collection [collectionName]` | Specify schematics collection. Use package name of installed npm package containing schematic.<br/> Alias: `-c` |
37+
| `--strict` | Start the project with the following TypeScript compiler flags enalbed: `strictNullChecks`, `noImplicitAny`, `strictBindCallApply`, `forceConsistentCasingInFileNames`, `noFallthroughCasesInSwitch` |
3738

3839
#### nest generate
3940

content/first-steps.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ $ npm i -g @nestjs/cli
2121
$ nest new project-name
2222
```
2323

24+
> info **Hint** To create a new project with TypeScript's [strict](https://www.typescriptlang.org/tsconfig#strict) mode enabled, pass the `--strict` flag to the `nest new` command.
25+
2426
The `project-name` directory will be created, node modules and a few other boilerplate files will be installed, and a `src/` directory will be created and populated with several core files.
2527

2628
<div class="file-tree">

content/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ $ npm i -g @nestjs/cli
2323
$ nest new project-name
2424
```
2525

26+
> info **Hint** To create a new project with TypeScript's [strict](https://www.typescriptlang.org/tsconfig#strict) mode enabled, pass the `--strict` flag to the `nest new` command.
27+
2628
#### Alternatives
2729

2830
Alternatively, to install the TypeScript starter project with **Git**:

content/migration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,8 @@ All deprecated methods & modules have been removed (e.g., the deprecated `listen
9494
#### Node.js
9595

9696
This release drops support for Node v10. We strongly recommend using the latest LTS version.
97+
98+
#### CLI
99+
100+
Due to stability issues, the command `update` was removed in the v9 of `@nestjs/cli`.
101+
You can use dedicated tools like [`ncu`](https://www.npmjs.com/package/npm-check-updates), `npm update`, [`yarn upgrade-interactive`](https://classic.yarnpkg.com/en/docs/cli/upgrade-interactive), etc., if you want to upgrade your dependencies.

0 commit comments

Comments
 (0)