Skip to content

Commit

Permalink
generate-blueprint: don't write blueprint template files on force
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 22, 2024
1 parent b264d9a commit 59f2973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/generate-blueprint/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const generatorFiles = {
path: 'generators/generator',
to: ctx => `${ctx.application.blueprintsPath}${ctx.generator}`,
condition(ctx) {
return ((this as any).options.force || !ctx.written) && ctx.priorities.find(priority => priority.name === 'writing');
return !ctx.written && ctx.priorities.find(priority => priority.name === 'writing');
},
transform: false,
templates: [
Expand Down

0 comments on commit 59f2973

Please sign in to comment.