Skip to content

Commit

Permalink
fix: Update public api script (#113)
Browse files Browse the repository at this point in the history
* changes

* ignore AI_CORE_CLIENT * import

* comment out recursive check

* cleanup
  • Loading branch information
shibeshduw authored Sep 5, 2024
1 parent 7458142 commit 01ae301
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/check-public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export async function checkApiOfPackage(pathToPackage: string): Promise<void> {
usePrettier: false
}
}, { exclude: includeExclude?.exclude!, include: ['**/*.ts'] });
await checkBarrelRecursive(pathToSource);
// await checkBarrelRecursive(pathToSource);

const indexFilePath = join(pathToSource, 'index.ts');
checkIndexFileExists(indexFilePath);
Expand Down Expand Up @@ -292,7 +292,7 @@ export async function checkBarrelRecursive(cwd: string): Promise<void> {
(await readdir(cwd, { withFileTypes: true }))
.filter(dirent => dirent.isDirectory())
.forEach(async subDir => {
if (['__snapshot__', 'spec'].includes(subDir.name)) {
if (!['__snapshot__', 'spec', 'tests'].includes(subDir.name)) {
await checkBarrelRecursive(join(cwd, subDir.name));
}
});
Expand All @@ -314,6 +314,7 @@ export async function exportAllInBarrel(
'**/*.test.ts',
'__snapshots__',
'spec',
'tests',
'internal.ts',
'index.ts',
'cli.ts',
Expand Down

0 comments on commit 01ae301

Please sign in to comment.