deploy: TS find/deploy

This commit is contained in:
Christopher Monsanto
2020-07-17 07:35:57 -04:00
parent eda260977f
commit aef7a18e4a
3 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
import fs from 'fs';
import pathlib from 'path';
export function link(pairs, dstDir) {
export function link(pairs : {src : string, dst : string}[], dstDir : string) {
for (let {src, dst} of pairs) {
dst = pathlib.join(dstDir, dst);
fs.mkdirSync(pathlib.dirname(dst), {recursive: true});

View File

@@ -2,7 +2,7 @@
import fs from 'fs';
import pathlib from 'path';
export function find(startDir, tag) {
export function find(startDir : string, tag : string) {
const stack = [startDir];
const results = [];
let dir;

View File

@@ -1,5 +1,6 @@
{
"dependencies": {
"@types/node": "^14.0.23",
"commander": "^5.1.0",
"debug": "^4.1.1"
},