Skip to content

Commit

Permalink
chore: Simplify logic (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 authored Apr 2, 2024
1 parent 7f487a5 commit d8346a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/cli/src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ async function runUpdate(cwd: string, config: Config, options: UpdateOptions) {
}

// utils.(ts|js) is not in the registry, it is a template, so we'll just overwrite it
if (config.typescript) {
await fs.writeFile(utilsPath, UTILS);
} else {
await fs.writeFile(utilsPath, UTILS_JS);
}
await fs.writeFile(utilsPath, config.typescript ? UTILS : UTILS_JS);
}

const tree = await resolveTree(
Expand Down

0 comments on commit d8346a3

Please sign in to comment.