Skip to content

Commit

Permalink
simplify types argv
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Nov 23, 2023
1 parent fe74d29 commit 5fbb9d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ const main = async () => {
})
.parseSync();

const types = argv.types as 'checkjs' | 'typescript' | null;

if (!argv.directory) {
argv.directory = argv.name;
argv.d = argv.name;
Expand All @@ -109,7 +107,7 @@ Will call create-svelte with the following arguments:
await create(argv.directory, {
name: argv.name,
template: argv.template,
types: types,
types: argv.types as 'checkjs' | 'typescript' | null,
prettier: argv.prettier,
eslint: argv.eslint,
playwright: argv.playwright,
Expand Down

0 comments on commit 5fbb9d6

Please sign in to comment.