Skip to content

Commit

Permalink
Pass proper projectType to generators
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 20, 2023
1 parent eb05461 commit dfd8b32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions code/lib/cli/src/generators/ANGULAR/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'path';
import { baseGenerator } from '../baseGenerator';
import type { Generator } from '../types';
import { CoreBuilder, ProjectType } from '../../project_types';
import { CoreBuilder } from '../../project_types';
import { AngularJSON, compoDocPreviewPrefix, promptForCompoDocs } from './helpers';
import { getCliDir } from '../../dirs';
import { paddedLog, copyTemplate } from '../../helpers';
Expand Down Expand Up @@ -59,7 +59,6 @@ const generator: Generator<{ projectName: string }> = async (
{
...options,
builder: CoreBuilder.Webpack5,
projectType: ProjectType.ANGULAR,
...(useCompodoc && {
frameworkPreviewParts: {
prefix: compoDocPreviewPrefix,
Expand Down
2 changes: 1 addition & 1 deletion code/lib/cli/src/initiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const installStorybook = async <Project extends ProjectType>(
linkable: !!options.linkable,
pnp: pnp || options.usePnp,
yes: options.yes,
projectType: options.type,
projectType,
};

const runGenerator: () => Promise<any> = async () => {
Expand Down

0 comments on commit dfd8b32

Please sign in to comment.