mirror of
https://github.com/smogon/sprites.git
synced 2026-08-20 00:34:22 -05:00
deploy: TS find/deploy
This commit is contained in:
@@ -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});
|
||||
@@ -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;
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@types/node": "^14.0.23",
|
||||
"commander": "^5.1.0",
|
||||
"debug": "^4.1.1"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user