tsc copy json files code example
Example 1: typescript how to mode json files when compile
{
"compilerOptions": {
"resolveJsonModule": true,
},
"include": [
"*/src/**/package.json"
]
}
Example 2: typescript compiler doesn't add json file
// add the underneath code in tsconfig.json, now json file will be imported
"resolveJsonModule": true