Skip to content

Commit

Permalink
fix(vue): respect useInferencePlugin in nx.json when generating apps
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Jun 26, 2024
1 parent 88fd03b commit 4702356
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vue/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
addProjectConfiguration,
formatFiles,
GeneratorCallback,
readNxJson,
runTasksInSerial,
toJS,
Tree,
Expand All @@ -28,7 +29,11 @@ export async function applicationGeneratorInternal(
_options: Schema
): Promise<GeneratorCallback> {
const options = await normalizeOptions(tree, _options);
options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false';
const nxJson = readNxJson(tree);

options.addPlugin ??=
process.env.NX_ADD_PLUGINS !== 'false' &&
nxJson.useInferencePlugins !== false;

const tasks: GeneratorCallback[] = [];

Expand Down

0 comments on commit 4702356

Please sign in to comment.