Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nestjs/nest-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jul 7, 2021
2 parents 683df15 + c59c827 commit 8968374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion actions/generate.action.ts
Expand Up @@ -4,6 +4,7 @@ import { Input } from '../commands';
import { getValueOrDefault } from '../lib/compiler/helpers/get-value-or-default';
import {
AbstractCollection,
Collection,
CollectionFactory,
SchematicOption,
} from '../lib/schematics';
Expand Down Expand Up @@ -35,7 +36,7 @@ const generateFiles = async (inputs: Input[]) => {
const spec = inputs.find((option) => option.name === 'spec');

const collection: AbstractCollection = CollectionFactory.create(
collectionOption || configuration.collection,
collectionOption || configuration.collection || Collection.NESTJS,
);
const schematicOptions: SchematicOption[] = mapSchematicOptions(inputs);
schematicOptions.push(
Expand Down
3 changes: 1 addition & 2 deletions commands/generate.command.ts
@@ -1,7 +1,6 @@
import * as chalk from 'chalk';
import * as Table from 'cli-table3';
import { Command, CommanderStatic } from 'commander';
import { Collection } from '../lib/schematics';
import { NestCollection } from '../lib/schematics/nest.collection';
import { AbstractCommand } from './abstract.command';
import { Input } from './command.input';
Expand Down Expand Up @@ -58,7 +57,7 @@ export class GenerateCommand extends AbstractCommand {
});
options.push({
name: 'collection',
value: command.collection || Collection.NESTJS,
value: command.collection,
});
options.push({
name: 'project',
Expand Down

0 comments on commit 8968374

Please sign in to comment.