diff options
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/index.ts | 7 |
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 |
