fix(js): change TS standalone preset to generate at the root (#19003)

This commit is contained in:
Jack Hsu 2023-09-05 12:07:12 -04:00 committed by GitHub
parent 37a0f7b79f
commit ce172d8706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ async function createPreset(tree: Tree, options: Schema) {
const { libraryGenerator } = require('@nx' + '/js'); const { libraryGenerator } = require('@nx' + '/js');
return libraryGenerator(tree, { return libraryGenerator(tree, {
name: options.name, name: options.name,
directory: join('packages', options.name), directory: '.',
projectNameAndRootFormat: 'as-provided', projectNameAndRootFormat: 'as-provided',
bundler: 'tsc', bundler: 'tsc',
unitTestRunner: 'vitest', unitTestRunner: 'vitest',