declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
9 lines (8 loc) • 466 B
TypeScript
/**
* runs `import(filePath)` on the file path, while also considering whether or not we need to update ts-node to support transpiling it (e.g., if its in `/node_modules/` dir)
*
* note: this fn keeps track of which node modules we've been asked to explicitly import from - and tells tsnode to parse them by adding them to the list of not ignored modules
*/
export declare const importExportsFromFile: ({ filePath, }: {
filePath: string;
}) => Promise<any>;