Skip to content

Commit 570f93e

Browse files
authored
Merge pull request #48 from 2u6z3r0/change_json_import_style
import json files directly
2 parents 4cd80dc + b53f483 commit 570f93e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/templates/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import s from 'shelljs';
2-
const config = require('./tsconfig.json');
2+
import config from './tsconfig.json';
33
const outDir = config.compilerOptions.outDir;
44

55
s.rm('-rf', outDir);

app/templates/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"sourceMap": true,
88
"moduleResolution": "node",
99
"outDir": "dist",
10-
"typeRoots": ["node_modules/@types"]
10+
"typeRoots": ["node_modules/@types"],
11+
"resolveJsonModule": true
1112
},
1213
"include": ["typings.d.ts", "server/**/*.ts"],
1314
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)