Enabling shorter import paths [automatic]

This commit is contained in:
ts_ci
2021-02-23 12:15:10 +00:00
parent 0c1c7b6a72
commit 4f8d40a6bb
50 changed files with 2764 additions and 196 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;