File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,16 @@ SCRIPT_DIR=$(dirname "$(greadlink -f "${BASH_SOURCE[0]}")")
4
4
ROOT_DIR=$( dirname " $SCRIPT_DIR " )
5
5
SRC_DIR=" ${ROOT_DIR} /src"
6
6
DATA_DIR=" ${SRC_DIR} /data"
7
+ TS_NODE_COMPILER_OPTIONS=' {\"module\":\"commonjs\"}'
7
8
8
9
function echo_and_eval() {
9
10
echo " $@ "
10
11
eval " $@ "
11
12
}
12
13
13
14
# get google spreadsheet csv files
14
- echo_and_eval " (cd ${SRC_DIR} && ts-node get_csv_files.ts)"
15
+ echo_and_eval " (cd ${SRC_DIR} && \
16
+ ts-node -O ${TS_NODE_COMPILER_OPTIONS} get_csv_files.ts)"
15
17
16
18
# normalize csv files
17
19
for x in " ${DATA_DIR} " /* .csv; do
@@ -30,4 +32,5 @@ echo_and_eval "python3 ${ROOT_DIR}/py/concat_csv_files.py ${HOTLINES} \
30
32
> ${DATA_DIR} /all.csv"
31
33
32
34
# convert csv files to json
33
- echo_and_eval " (cd ${SRC_DIR} && ts-node make_json_files.ts)"
35
+ echo_and_eval " (cd ${SRC_DIR} && \
36
+ ts-node -O ${TS_NODE_COMPILER_OPTIONS} make_json_files.ts)"
Original file line number Diff line number Diff line change 11
11
" dom.iterable" ,
12
12
" esnext"
13
13
],
14
- "module" : " commonjs " ,
14
+ "module" : " esnext " ,
15
15
"moduleResolution" : " node" ,
16
16
"resolveJsonModule" : true ,
17
17
"skipLibCheck" : true ,
You can’t perform that action at this time.
0 commit comments