From ce172d870612e21793f3c6d2327d2ec6f4658375 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 5 Sep 2023 12:07:12 -0400 Subject: [PATCH] fix(js): change TS standalone preset to generate at the root (#19003) --- packages/workspace/src/generators/preset/preset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/workspace/src/generators/preset/preset.ts b/packages/workspace/src/generators/preset/preset.ts index 21e35e83ea183..6679366655053 100644 --- a/packages/workspace/src/generators/preset/preset.ts +++ b/packages/workspace/src/generators/preset/preset.ts @@ -163,7 +163,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',