in my typescript project, i am able to re-export my default exports in index.ts of a folder.
for eg:
export { default as BaseError } from "./errorResponse";
but i am unable to export JSON files like this.
export * as configFiles from "./config";
how to bundle and export JSON files such that i can use it in paths of tsconfig
{
"compilerOptions": {
"paths": {
"@errorClass": ["src/helpers/errorClasses"],
"@config": ["src/config"],
"@routes": ["src/routes"]
},
}