I have a tsconfig.json in the parent folder store/aisle/fruits:
{
"compileOnSave": true,
"compilerOptions": {
.
.
"target": "es6",
"noEmitOnError" : true,
"noEmitHelpers": false,
"stripInternal": true,
"removeComments": true,
"declaration": true
}
}
And I have another tsconfig.json in store/aisle/fruits/mango to override the target property. Price.ts has an async/await implementation and I want it to remain as such in the generated .js files; hence, changing target value to ES2017:
{
"extends": '../tsconfig',
"compilerOptions": {
"target": "ES2017"
},
"files": ["Price.ts", "index.ts"]
}
For some reason, however, the tsc does not seem to catch the changes in the tsconfig in the mango folder and override the tsconfig in the fruits folder. Therefore, the generated .js includes the emitted helpers (__awaiter), which I do not want.
So, my question is how can I override the target value to get the desired effect (having only the async/await and not __awaiter) in my price.js file?