refactor(core-extensions): Use roolup to inline internal modules
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user