Skip to content

Commit c672f40

Browse files
authored
Merge pull request #187 from bcgov/fix/production-build-configurations
CI: add prod build, fix imports, add docs config
2 parents 9228bee + cd47eb9 commit c672f40

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/frontend-qa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Type Check
3434
working-directory: apps/frontend
3535
run: npm run type-check
36+
- name: Production Build
37+
working-directory: apps/frontend
38+
run: npm run build
3639
- name: Run Unit Tests
3740
working-directory: apps/frontend
3841
run: npm run test

apps/frontend/src/pages/WorkflowEditorPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import {
2+
type GraphValidationError,
3+
validateGraphConfig,
4+
} from "@ai-di/graph-workflow";
15
import { json } from "@codemirror/lang-json";
26
import { Diagnostic, linter, lintGutter } from "@codemirror/lint";
37
import { EditorView } from "@codemirror/view";
@@ -12,10 +16,6 @@ import {
1216
useUpdateWorkflow,
1317
useWorkflow,
1418
} from "../data/hooks/useWorkflows";
15-
import {
16-
GraphValidationError,
17-
validateGraphConfig,
18-
} from "../types/graph-workflow";
1919
import { GraphWorkflowConfig } from "../types/workflow";
2020
import {
2121
Badge,

apps/frontend/vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ export default defineConfig({
7272
dedupe: ["react", "react-dom"],
7373
alias: {
7474
"@": fileURLToPath(new URL("./src", import.meta.url)),
75+
// Bundle graph-workflow from source: dist is CommonJS and Rollup cannot
76+
// resolve named exports (e.g. validateGraphConfig) from the compiled output.
77+
"@ai-di/graph-workflow": fileURLToPath(
78+
new URL("../../packages/graph-workflow/src/index.ts", import.meta.url),
79+
),
7580
// Explicit aliases so Vite/Vitest always resolves to the same React
7681
// instance in all environments (prevents "Invalid hook call" in CI).
7782
react: fileURLToPath(

docs/_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# GitHub Pages (Jekyll) configuration.
2+
# The published site is built with docs/build.sh; these settings prevent Jekyll
3+
# from processing internal plan/spec markdown that contains JSX-style {{ }} syntax.
4+
exclude:
5+
- superpowers

0 commit comments

Comments
 (0)