output is optional

This commit is contained in:
Chen Asraf
2018-01-15 02:16:51 +02:00
parent 1275743764
commit 14b60ffc79

2
cmd.ts
View File

@@ -44,7 +44,7 @@ class ScaffoldCmd {
}
})
if (!['name', 'templates', 'output'].every(o => options[o] !== undefined)) {
if (!['name', 'templates'].every(o => options[o] !== undefined)) {
throw new Error(`Config is missing keys: ${JSON.stringify(options)}`)
}