Skip to content

Commit 120a685

Browse files
fix(qwik-nx): do not import app generator in the preset (#97)
1 parent 7f6d60c commit 120a685

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/qwik-nx/src/generators/preset/generator.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ensurePackage, Tree } from '@nrwl/devkit';
22
import { QwikWorkspacePresetGeneratorSchema } from './schema';
3-
import { appGenerator } from '../application/generator';
43
import { getInstalledNxVersion } from '../../utils/get-installed-nx-version';
54

65
export default async function (
@@ -12,5 +11,7 @@ export default async function (
1211
options.directory = '';
1312
options.name = options.qwikAppName ?? options.name;
1413
options.style = options.qwikAppStyle ?? options.style;
15-
return appGenerator(tree, options);
14+
return await import('../application/generator').then(({ appGenerator }) =>
15+
appGenerator(tree, options)
16+
);
1617
}

0 commit comments

Comments
 (0)