diff --git a/packages/workspace/src/generators/preset/preset.ts b/packages/workspace/src/generators/preset/preset.ts index b3e722bcb9857..285d861d76814 100644 --- a/packages/workspace/src/generators/preset/preset.ts +++ b/packages/workspace/src/generators/preset/preset.ts @@ -169,7 +169,7 @@ async function createPreset(tree: Tree, options: Schema) { const { libraryGenerator } = require('@nx' + '/js'); return libraryGenerator(tree, { name: options.name, - directory: join('packages', options.name), + directory: '.', projectNameAndRootFormat: 'as-provided', bundler: 'tsc', unitTestRunner: 'vitest',