refactor(core-extensions): Use roolup to inline internal modules

This commit is contained in:
T. R. Bernstein
2025-04-21 20:46:30 +02:00
parent 1ba1659600
commit 1b93170cde
5 changed files with 480 additions and 51 deletions

View File

@@ -14,9 +14,14 @@ function walk(dir) {
for (const entry of entries) {
const fullPath = path.join(dir, entry.name)
if (entry.isDirectory()) {
if (entry.isDirectory() && !entry.name.endsWith('internal')) {
result = result.concat(walk(fullPath))
} else if (entry.isFile() && entry.name.endsWith('.ts') && !entry.name.endsWith('.d.ts')) {
} else if (
entry.isFile() &&
entry.name.endsWith('.ts') &&
!entry.name.endsWith('.d.ts') &&
!entry.name.endsWith('.test.ts')
) {
result.push(fullPath)
}
}