Skip to content

Commit 844d529

Browse files
committed
feat(ci): add useful exports
1 parent f2744fd commit 844d529

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

packages/ci/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
export type { SourceFileIssue } from './lib/issues';
12
export type * from './lib/models';
3+
export {
4+
MONOREPO_TOOLS,
5+
isMonorepoTool,
6+
type MonorepoTool,
7+
} from './lib/monorepo';
28
export { runInCI } from './lib/run';
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
export { listMonorepoProjects } from './list-projects';
2-
export { MONOREPO_TOOLS, type MonorepoTool, type ProjectConfig } from './tools';
2+
export {
3+
MONOREPO_TOOLS,
4+
isMonorepoTool,
5+
type MonorepoTool,
6+
type ProjectConfig,
7+
} from './tools';

packages/ci/src/lib/monorepo/tools.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ export type ProjectConfig = {
2020
bin: string;
2121
directory?: string;
2222
};
23+
24+
export function isMonorepoTool(value: string): value is MonorepoTool {
25+
return MONOREPO_TOOLS.includes(value as MonorepoTool);
26+
}

0 commit comments

Comments
 (0)