mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ci: fix config generation
This commit is contained in:
1 parent
6cea9eb51c
commit
c6796a3a2b
4 files changed
+7
-5
No files matched your search
+1
-1
@@ -88,10 +88,10 @@ const UIConfig = {
|
||||
};
|
||||
|
||||
for (const package of modules) {
|
||||
config.references.push({ path: package });
|
||||
const basedir = path.resolve(process.cwd(), package);
|
||||
const files = fs.readdirSync(basedir);
|
||||
if (!files.includes('src') && !files.filter((i) => i.endsWith('.ts')).length && package !== 'packages/utils') continue;
|
||||
config.references.push({ path: package });
|
||||
const expectedConfig = JSON.stringify((files.includes('src') ? configSrc : configFlat)(package));
|
||||
const configPath = path.resolve(basedir, 'tsconfig.json');
|
||||
const currentConfig = fs.existsSync(configPath) ? fs.readFileSync(configPath, 'utf-8') : '';
|
||||
|
||||
Reference in new issue
Block a user