Skip to content

Commit d03b6bc

Browse files
committed
fix: update build artifacts and workflow for module sync
- Rebuild dist files with exported types for web-preview compatibility - Update deploy-pages workflow to build root module first - Ensure proper dependency chain: root build -> web-preview build -> deploy
1 parent 39851fd commit d03b6bc

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ jobs:
3232
cache: 'npm'
3333
cache-dependency-path: 'web-preview/package-lock.json'
3434

35-
- name: Install dependencies
35+
- name: Install root dependencies
36+
run: npm ci
37+
38+
- name: Build root module
39+
run: npm run build
40+
41+
- name: Install web-preview dependencies
3642
working-directory: ./web-preview
3743
run: npm ci
3844

bin/cfb.js

100644100755
File mode changed.

dist/core.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ declare const applyValidationRules: (state: ProcessingState) => ProcessingState;
5555
declare const processMessage: (state: ProcessingState) => ProcessingState;
5656
declare function run(opts?: RunOptions): number;
5757

58-
export { applyValidationRules, createInitialState, messageProcessors, processMessage, run, validationRules };
58+
export { type CommitFromBranchConfig, type Context, type MessageProcessor, type ProcessingState, type RunOptions, type ValidationRule, applyValidationRules, createInitialState, messageProcessors, processMessage, run, validationRules };

dist/core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ declare const applyValidationRules: (state: ProcessingState) => ProcessingState;
5555
declare const processMessage: (state: ProcessingState) => ProcessingState;
5656
declare function run(opts?: RunOptions): number;
5757

58-
export { applyValidationRules, createInitialState, messageProcessors, processMessage, run, validationRules };
58+
export { type CommitFromBranchConfig, type Context, type MessageProcessor, type ProcessingState, type RunOptions, type ValidationRule, applyValidationRules, createInitialState, messageProcessors, processMessage, run, validationRules };

src/core.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,14 @@ export {
265265
messageProcessors,
266266
applyValidationRules,
267267
processMessage
268-
};
268+
};
269+
270+
// Export types for external use
271+
export type {
272+
CommitFromBranchConfig,
273+
Context,
274+
RunOptions,
275+
ProcessingState,
276+
ValidationRule,
277+
MessageProcessor
278+
} from './types';

0 commit comments

Comments
 (0)