From b8f5ac1469bfc8cd48809faf8d2d096fd112db32 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 5 Sep 2023 10:03:09 -0400 Subject: [PATCH] fix(js): change TS standalone preset to generate at the root --- lerna.json | 11 +---------- packages/workspace/src/generators/preset/preset.ts | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lerna.json b/lerna.json index 7aacb77687b732..5c60aa676a9857 100644 --- a/lerna.json +++ b/lerna.json @@ -1,10 +1 @@ -{ - "packages": ["build/packages/*", "build/packages/nx/native-packages/*"], - "version": "16.8.0-beta.7", - "granularPathspec": false, - "command": { - "publish": { - "graphType": "all" - } - } -} +{"packages":["build/packages/*","build/packages/nx/native-packages/*"],"version":"16.7.4","granularPathspec":false,"command":{"publish":{"graphType":"all"}}} \ No newline at end of file diff --git a/packages/workspace/src/generators/preset/preset.ts b/packages/workspace/src/generators/preset/preset.ts index b3e722bcb9857b..285d861d76814d 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',