Skip to content

Commit

Permalink
Fix: Wrong template for project rule when using elm-review new-package (
Browse files Browse the repository at this point in the history
#162)

Closes #161
  • Loading branch information
mateusfpleite authored Jun 22, 2024
1 parent 79d8ce2 commit fe67117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/new-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function create(options) {
return;
}

const ruleType = options.newRuleName || (await NewRule.askForRuleType());
const ruleType = options.ruleType || (await NewRule.askForRuleType());
if (!ruleType) {
return;
}
Expand Down Expand Up @@ -213,7 +213,7 @@ async function createProject(
NewRule.newSourceFile(
`${authorName}/${packageName}`,
ruleName,
options.ruleType
ruleType
)
);
writeFile(
Expand Down

0 comments on commit fe67117

Please sign in to comment.