From 1935eee12cc939e66f127e3c24e2dfbfaf66bdf8 Mon Sep 17 00:00:00 2001 From: guoxianzhe <53285945+guoxianzhe@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:36:31 +0800 Subject: [PATCH] add tsconfig.json into terra (#30) --- terra/bin/terra | 2 +- terra/tsconfig.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 terra/tsconfig.json diff --git a/terra/bin/terra b/terra/bin/terra index a136d04..3ba32e2 100755 --- a/terra/bin/terra +++ b/terra/bin/terra @@ -1,2 +1,2 @@ -#!/usr/bin/env ts-node -T --skipIgnore +#!/usr/bin/env -S ts-node -T --skipIgnore require('../src/bin'); diff --git a/terra/tsconfig.json b/terra/tsconfig.json new file mode 100644 index 0000000..b7b7b78 --- /dev/null +++ b/terra/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs", + "strict": true, + "sourceMap": true, + "esModuleInterop": true, + "rootDirs": ["**/src", "**/__tests__"] + } +}