deploy: TS index

This commit is contained in:
Christopher Monsanto 2020-07-17 07:46:09 -04:00
parent e38fc0155a
commit b11b520a38

View File

@ -7,7 +7,7 @@ import {link} from './deploy.js';
program
.command('deploy <tag> <outputDir>')
.option('-d, --dir [dir]', 'Directory')
.action((tag, outputDir, opts) => {
.action((tag : string, outputDir : string, opts) => {
const dir = opts.dir || '.';
const results = run(find(dir, tag));
link(results, outputDir);
@ -17,7 +17,7 @@ program
.command('print <tag>')
.option('-d, --dir [dir]', 'Directory')
.option('--json', 'As JSON')
.action((tag, opts) => {
.action((tag : string, opts) => {
const dir = opts.dir || '.';
const results = run(find(dir, tag));
if (opts.json) {