For my server, I have decided to use Typescript with NodeJS.
One of the challenges I encountered in my server logic is manipulating .xlsx and .docx files. Unfortunately, these file types are not included in the Typescript compilation output. These specific files serve as templates for generating other files.
This is an overview of my project structure:
package.json
package-lock.json
ormconfig.json
tsconfig.json
/src
/reports
--other-.ts-files
Router.ts
Report.xlsx //Desire this file to be incorporated in the Typescript compilation output
Report.docx //Desire this file to be incorporated in the Typescript compilation output
I am seeking guidance on how to include .xlsx and .docx files in the Typescript compilation output. Specifically, what modifications should be made in the tsconfig.json file?