From 43b75ae5ac24b2cf9235b08f14d62a185c8d6197 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Thu, 30 Jul 2020 23:33:34 -0400 Subject: [PATCH] deploy: -o is required, make copy() relative to outputDir --- tools/deploy/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/deploy/index.ts b/tools/deploy/index.ts index ce84417c..46e36ed3 100644 --- a/tools/deploy/index.ts +++ b/tools/deploy/index.ts @@ -13,7 +13,7 @@ function collect(value : string, previous : string[]) { program .command('copy [files...]') - .option('-o, --output ', 'Output directory') + .requiredOption('-o, --output ', 'Output directory') // TODO: default toID .option('-e, --eval ', 'Expr') .option('-m, --module ', 'Module') @@ -33,7 +33,7 @@ program for (const file of files) { const src = pathlib.path(file); - const dst = pathlib.path(src, scr.runOnFile(src)); + const dst = pathlib.join(outputDir, pathlib.path(src, scr.runOnFile(src))); aq.copy(src, dst); }