feat(config): add smartconfig metadata and update TypeScript build configuration docs
This commit is contained in:
@@ -18,7 +18,6 @@ export const compilerOptionsDefault: CompilerOptions = {
|
||||
noImplicitAny: false,
|
||||
esModuleInterop: true,
|
||||
verbatimModuleSyntax: true,
|
||||
baseUrl: './',
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -98,12 +97,13 @@ export class TsConfig {
|
||||
|
||||
// Apply path transformations (ts_ → dist_ts_)
|
||||
if (tsconfig.compilerOptions.paths) {
|
||||
returnObject.paths = { ...tsconfig.compilerOptions.paths };
|
||||
for (const pathKey of Object.keys(returnObject.paths)) {
|
||||
if (Array.isArray(returnObject.paths[pathKey]) && returnObject.paths[pathKey].length > 0) {
|
||||
returnObject.paths[pathKey][0] = returnObject.paths[pathKey][0].replace('./ts_', './dist_ts_');
|
||||
const paths: Record<string, string[]> = { ...tsconfig.compilerOptions.paths };
|
||||
for (const pathKey of Object.keys(paths)) {
|
||||
if (Array.isArray(paths[pathKey]) && paths[pathKey].length > 0) {
|
||||
paths[pathKey][0] = paths[pathKey][0].replace('./ts_', './dist_ts_');
|
||||
}
|
||||
}
|
||||
returnObject.paths = paths;
|
||||
}
|
||||
|
||||
this.cachedTsConfig = returnObject;
|
||||
|
||||
Reference in New Issue
Block a user