From 8416e8d4451300f8c4c3693295ca4dcc0e7a92ac Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Thu, 30 Jul 2020 23:45:34 -0400 Subject: [PATCH] deploy: force evaluation context for parsing -e --- tools/deploy/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deploy/index.ts b/tools/deploy/index.ts index 44577684..ce9efa0c 100644 --- a/tools/deploy/index.ts +++ b/tools/deploy/index.ts @@ -23,7 +23,7 @@ program .action(async (files : string[], {eval: expr, module: mod, output: outputDir, tag: tags, act}) => { let code : string; if (expr !== undefined) { - code = expr; + code = `(${expr})`; } else if (mod !== undefined) { code = fs.readFileSync(mod, 'utf8'); } else {