Skip to content

Commit 7ebd9be

Browse files
committed
fix: 🐛 Fixed wrong option for template
This commit fixes small bug of wrong option being choosen
1 parent 6589ca7 commit 7ebd9be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ get(schema, (error, argv) => {
8787
} else {
8888
console.log(`Option Chosen:\n${options[argv.option].templateName}\nDirectory Chosen/Default:\n${argv.path}\nProject Name:\n${argv.projectName || options[argv.option].defaultName}`);
8989
console.log(`Starting Project creation...`);
90-
initiate(options[argv.option], argv.path, argv.projectName);
90+
initiate(options[argv.option - 1], argv.path, argv.projectName);
9191
}
9292
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastify-typescript-generator",
3-
"version": "0.0.1BETA",
3+
"version": "0.0.2",
44
"description": "Generate new Fastify applications similar to express-generate which but sets it up to use TypeScript instead",
55
"scripts": {
66
"fastify-generator-typescript": "node cli.js",

0 commit comments

Comments
 (0)