aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-18 12:54:55 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-18 12:54:55 -0400
commitc26918210d8df5cadfcb2c34925407489c50375e (patch)
tree5647e36c415bd7cbbd88967b0a5d42e36de06e8a
parent3e9dad9bd054aa0733133a09e6cae0c129b4693f (diff)
downloadtanzanite-c26918210d8df5cadfcb2c34925407489c50375e.tar.gz
tanzanite-c26918210d8df5cadfcb2c34925407489c50375e.tar.bz2
tanzanite-c26918210d8df5cadfcb2c34925407489c50375e.zip
fix eval
-rw-r--r--src/commands/dev/eval.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index 83dd66f..7abb71c 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -142,7 +142,7 @@ export default class EvalCommand extends BushCommand {
const code: { js?: string | null; ts?: string | null; lang?: 'js' | 'ts' } = {};
args.code = args.code.replace(/[“”]/g, '"');
args.code = args.code.replace(/```*(?:js|ts)?/g, '');
- if (args.typescript || message) {
+ if (args.typescript ) {
code.ts = args.code;
code.js = transpile(args.code);
code.lang = 'ts';