I compile Typescript to a compile directory called lib
And when I import local files from my typescript file, the relative path won't work for the compiled .js files, since they are compiled into different directory.
Hence it throws Error: Cannot find module './email/test.mjml' Error
const text = require("./mytext.txt");
How can this be fixed? Is there a way to configure it to fix the import paths when it compiles?