Use ts-node-script to run radarjson.ts with custom tsconfig
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"_build": "yarn clean && yarn build:pages && yarn build:jsprod && yarn build:css && yarn build:assets",
|
"_build": "yarn clean && yarn build:pages && yarn build:jsprod && yarn build:css && yarn build:assets",
|
||||||
"build:all": "yarn build",
|
"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",
|
"build:css": "postcss -c postcss.config.js -o dist/techradar/assets/css/styles.css styles/main.css",
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
|
|||||||
12
tasks/tsconfig.json
Normal file
12
tasks/tsconfig.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"module": "commonjs",
|
||||||
|
"lib": ["es6", "es2015", "dom"],
|
||||||
|
"declaration": true,
|
||||||
|
"strict": true,
|
||||||
|
"types": ["node"],
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"resolveJsonModule": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user