Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
lxghtless committed Apr 5, 2020
1 parent 492c447 commit 69955ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions @types/cfonts/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'cfonts' {
export function say(str: string, options: any): void
}
6 changes: 3 additions & 3 deletions cli.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node
'use strict'

import {isPiped, run} from './src'
import cfonts from 'cfonts'
import {argv} from 'yargs'
import {run, isPiped} from './src'

const showHelp = () => {
const showHelp = (): void => {
console.log(' ')
cfonts.say('clipfs', {
font: 'chrome',
Expand Down Expand Up @@ -34,7 +34,7 @@ const showHelp = () => {
console.log(`\n\x1b[2m${helpMenuItems.join('\n\n')}\n\x1b[0m`)
}

if (argv.help || argv.h) {
if (process.argv[2] === '--help' || argv.h) {
showHelp()
} else {
const show = (argv.show ?? argv.s) as boolean
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2018"
"target": "ES2018",
"typeRoots": ["./node_modules/@types", "./@types"]
},
"exclude": [
"node_modules"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2018"
"target": "ES2018",
"typeRoots": ["./node_modules/@types", "./@types"]
},
"exclude": [
"node_modules"
Expand Down

0 comments on commit 69955ed

Please sign in to comment.