fix: refs #8698 update import path resolution to read jsconfig.json using fs
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-04-07 12:20:40 +02:00
parent 406b25103d
commit 455fd72db4
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import fs from 'fs';
import path from 'path';
const rootDir = process.cwd();
import config from '../../../../jsconfig.json' with { type: 'json' };
const config = JSON.parse(fs.readFileSync('jsconfig.json', 'utf-8'));
const { paths, baseUrl } = config.compilerOptions;
function resolveImportPath(importPath, fileBase) {