Skip to content

Commit

Permalink
Move framework check back to template (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj committed Dec 3, 2022
1 parent 517e2a7 commit 94f49b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-snails-reply.md
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Add changeset
16 changes: 8 additions & 8 deletions packages/cli/src/create/command.ts
Expand Up @@ -259,16 +259,16 @@ export async function twCreate(
framework = res.framework.trim();
}
}
}

if (!framework) {
console.log("Please specify a framework");
process.exit(1);
}
if (!framework) {
console.log("Please specify a framework");
process.exit(1);
}

if (!language) {
// Default = JavaScript
language = "javascript";
if (!language) {
// Default = JavaScript
language = "javascript";
}
}
}

Expand Down

0 comments on commit 94f49b1

Please sign in to comment.