aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2017-12-28 14:33:55 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2017-12-28 14:33:55 +0200
commitc5da21e311e832590d702ae08349929fc1e38a1a (patch)
tree022f1626ea025958207636f5beea6e2420de903b
parente6895247b7dddeeea0109f5f8284bde044d30698 (diff)
Fix help outputmaster
-rw-r--r--package.json2
-rw-r--r--src/index.ts7
2 files changed, 3 insertions, 6 deletions
diff --git a/package.json b/package.json
index 8367ef3..7fbd948 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "create-riot-component",
- "version": "1.0.3",
+ "version": "1.0.4",
"description": "Create ES6 riot.js component",
"main": "dist/index.js",
"bin": {
diff --git a/src/index.ts b/src/index.ts
index e081fbc..0202d62 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -7,7 +7,7 @@ import scss from './tag/scss';
import index from './tag/index';
import * as pkg from '../package.json';
-async function main(tagName: string) {
+async function main(tagName: string): Promise<void> {
const name = tagName.toLocaleLowerCase();
console.log(`Creating component ${name}...`);
@@ -23,8 +23,5 @@ program
.action(name => {
main(name);
})
- .action(() => {
- console.log('No component name specified.');
- })
- .usage('create-riot-component [name]')
+ .usage('[name]')
.parse(process.argv); \ No newline at end of file