fix(js): change TS standalone preset to generate at the root (#19003)
This commit is contained in:
parent
37a0f7b79f
commit
ce172d8706
@ -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',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user