Skip to content

Commit

Permalink
improve resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Jan 5, 2025
1 parent b968906 commit cbc05d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/mergeTsConfig.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ let currentConfig = rootConfig;
let relativeRoot = _path.default.dirname(_path.default.resolve(configPath));
while (currentConfig) {
if (currentConfig.extends) {
const extendsPath = _path.default.resolve(relativeRoot, currentConfig.extends);
let extendsPath = _path.default.resolve(relativeRoot, currentConfig.extends);
if (!_fs.default.existsSync(extendsPath)) {
extendsPath = _path.default.resolve(relativeRoot, "node_modules", currentConfig.extends);
}
const c = _json.default.parse(_fs.default.readFileSync(extendsPath, "utf-8").toString());
configs.push(c);
currentConfig = c;
Expand Down

0 comments on commit cbc05d8

Please sign in to comment.