From e6cffe8cd6ba4669975f740f504d370b66cc6495 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 25 Mar 2021 17:23:03 -0500 Subject: [PATCH] Node v12 --- run2.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/run2.sh b/run2.sh index 0b1e0b0..0a0fc5b 100644 --- a/run2.sh +++ b/run2.sh @@ -2,17 +2,19 @@ set -x # Install a specific version of node -# nvm 12.16.1 +n 12.16.1 git clone https://github.com/code-asher/ts-node-repro cd ts-node-repro yarn + +# Doesn't work (on v12). yarn ts-node index.ts +code=$? +# Should work. yarn add ts-node@9.0.0 yarn ts-node index.ts -echo "Process exited with code: $?" -echo -echo +exit $code