Skip to content

Commit

Permalink
feat(js): update js init generator to not set addPlugins to false pro…
Browse files Browse the repository at this point in the history
…grammatically
  • Loading branch information
jaysoo authored and leosvelperez committed Sep 19, 2024
1 parent a8a3428 commit aaa0202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/js/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export async function initGenerator(
return initGeneratorInternal(tree, {
addTsConfigBase: true,
formatter: 'prettier',
addPlugin: false,
...schema,
});
}
Expand Down
2 changes: 2 additions & 0 deletions packages/js/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,8 @@ async function normalizeOptions(
// TODO(leo): log a warning if the user explicitly sets useProjectJson to true
// and the project is not in the workspaces config. Also, consider automatically
// adding the project to the workspaces config if it's not there.
// TODO(leo): if the library root is not in workspaces but user has workspaces enabled, this should throw or warn -- or provide a way to remedy.
/// We should not just add to `compilerOptions.paths`
options.useProjectJson ??= hasPlugin
? !isProjectInPackageManagerWorkspaces(tree, projectRoot)
: true;
Expand Down

0 comments on commit aaa0202

Please sign in to comment.