Skip to content

Commit

Permalink
Merge pull request #1344 from micalevisk/feat/add-strict-flag
Browse files Browse the repository at this point in the history
feat(): add optional --strict flag on "nest new"
  • Loading branch information
kamilmysliwiec committed Sep 29, 2021
2 parents 11e791c + c028737 commit 33d0935
Show file tree
Hide file tree
Showing 4 changed files with 20,069 additions and 44 deletions.
2 changes: 2 additions & 0 deletions commands/new.command.ts
Expand Up @@ -28,13 +28,15 @@ export class NewCommand extends AbstractCommand {
'-c, --collection [collectionName]',
'Schematics collection to use.',
)
.option('--strict', 'Enables strict mode in TypeScript.')
.action(async (name: string, command: Command) => {
const options: Input[] = [];
const availableLanguages = ['js', 'ts', 'javascript', 'typescript'];
options.push({ name: 'directory', value: command.directory });
options.push({ name: 'dry-run', value: !!command.dryRun });
options.push({ name: 'skip-git', value: !!command.skipGit });
options.push({ name: 'skip-install', value: !!command.skipInstall });
options.push({ name: 'strict', value: !!command.strict });
options.push({
name: 'package-manager',
value: command.packageManager,
Expand Down

0 comments on commit 33d0935

Please sign in to comment.