From f746fa2a9867dc4eaaa6c00cfcddff66a5b0876a Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 5 Sep 2023 10:57:43 -0400 Subject: [PATCH] fix(js): change TS standalone preset to generate at the root --- 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 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',