diff --git a/packages/workspace/src/generators/new/generate-preset.ts b/packages/workspace/src/generators/new/generate-preset.ts index 75e976f9d2eee6..541d0fcb6a4610 100644 --- a/packages/workspace/src/generators/new/generate-preset.ts +++ b/packages/workspace/src/generators/new/generate-preset.ts @@ -16,12 +16,7 @@ import * as yargsParser from 'yargs-parser'; import { spawn, SpawnOptions } from 'child_process'; export function addPresetDependencies(host: Tree, options: NormalizedSchema) { - if ( - options.preset === Preset.Apps || - options.preset === Preset.Core || - options.preset === Preset.Empty || - options.preset === Preset.NPM - ) { + if (options.preset === Preset.Core || options.preset === Preset.Empty) { return; } const { dependencies, dev } = getPresetDependencies(options); @@ -98,6 +93,8 @@ function getPresetDependencies({ e2eTestRunner, }: NormalizedSchema) { switch (preset) { + case Preset.Apps: + case Preset.NPM: case Preset.TS: case Preset.TsStandalone: return { dependencies: {}, dev: { '@nx/js': nxVersion } };