From 17baffe322ba6c6884852fd6202240cfcf8e2911 Mon Sep 17 00:00:00 2001 From: Florian Brandel Date: Thu, 3 Sep 2020 16:54:42 +0200 Subject: [PATCH] Use ts-node-script to run radarjson.ts with custom tsconfig --- package.json | 2 +- tasks/tsconfig.json | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tasks/tsconfig.json diff --git a/package.json b/package.json index 1144000..5ea2fa6 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "react-scripts test", "_build": "yarn clean && yarn build:pages && yarn build:jsprod && yarn build:css && yarn build:assets", "build:all": "yarn build", - "build:pages": "yarn run ts-node ./src/radarjson.ts", + "build:pages": "yarn run ts-node-script ./tasks/radarjson.ts", "build:css": "postcss -c postcss.config.js -o dist/techradar/assets/css/styles.css styles/main.css", "type-check": "tsc --noEmit" }, diff --git a/tasks/tsconfig.json b/tasks/tsconfig.json new file mode 100644 index 0000000..67e365d --- /dev/null +++ b/tasks/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "lib": ["es6", "es2015", "dom"], + "declaration": true, + "strict": true, + "types": ["node"], + "esModuleInterop": true, + "resolveJsonModule": true + } +}