Within the directory store/aisle/fruits
, there is a tsconfig.json
file:
{
"compileOnSave": true,
"compilerOptions": {
.
.
"target": "es6",
"noEmitOnError" : true,
"noEmitHelpers": false,
"stripInternal": true,
"removeComments": true,
"declaration": true
}
}
In the subfolder store/aisle/fruits/mango
, I have another tsconfig.json
specifically to change the target property. The file Price.ts
utilizes async/await
functionality, and it should remain unchanged in the resultant .js
files. To achieve this, the target
value needs to be set to ES2017
:
{
"extends": '../tsconfig',
"compilerOptions": {
"target": "ES2017"
},
"files": ["Price.ts", "index.ts"]
}
Despite these configurations, the changes made in the tsconfig
at the mango
level are not reflected when compiling with tsc
. Consequently, the generated .js
includes emitted helpers (__awaiter
) that are unwanted.
Therefore, my query is how can I effectively override the target value to eliminate the unnecessary __awaiter
and ensure only async/await
functionality remains in the resulting price.js
file?