Enabling shorter import paths [automatic]

This commit is contained in:
ts_ci
2021-02-27 01:33:54 +00:00
parent afe4fd4272
commit 2053973fe3
54 changed files with 3009 additions and 222 deletions

13
tools/transformCodebase.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
/// <reference types="node" />
/** Apply a transformation function to every file of directory */
export declare function transformCodebase(params: {
srcDirPath: string;
destDirPath: string;
transformSourceCodeString: (params: {
sourceCode: Buffer;
filePath: string;
}) => {
modifiedSourceCode: Buffer;
newFileName?: string;
} | undefined;
}): void;