Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(): add optional --strict flag on "nest new" #1344

Merged
merged 3 commits into from Sep 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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