feat(cli): Enhance CLI for TypeScript folder compilation ordering based on rank and predefined rules.

This commit is contained in:
2024-11-05 01:48:49 +01:00
parent 5369e8d931
commit 59c6e72187
7 changed files with 2728 additions and 1931 deletions

View File

@@ -62,6 +62,9 @@ export const mergeCompilerOptions = (
if (tsconfig && tsconfig.compilerOptions && tsconfig.compilerOptions.paths) {
console.log('paths found in tsconfig.json');
returnObject.paths = tsconfig.compilerOptions.paths;
for (const path of Object.keys(tsconfig.compilerOptions.paths)) {
returnObject.paths[path][0] = returnObject.paths[path][0].replace('./ts_', './dist_ts_');
}
}
return returnObject;
})(),