Skip to content

Commit d95fea1

Browse files
committed
Fix CI build check paths for dual-build structure
Updated GitHub Actions workflow to check for the correct output paths: - dist/esm/index.js (ES modules) - dist/cjs/index.js (CommonJS) - dist/browser/index.js (Browser IIFE) - dist/esm/index.d.ts (TypeScript declarations)
1 parent 9b48feb commit d95fea1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828

2929
- name: Check if build outputs exist
3030
run: |
31-
test -f dist/index.js || (echo "dist/index.js not found" && exit 1)
32-
test -f dist/vi-editor.js || (echo "dist/vi-editor.js not found" && exit 1)
33-
test -f dist/example-files.js || (echo "dist/example-files.js not found" && exit 1)
34-
test -f dist/index.d.ts || (echo "dist/index.d.ts not found" && exit 1)
31+
test -f dist/esm/index.js || (echo "dist/esm/index.js not found" && exit 1)
32+
test -f dist/cjs/index.js || (echo "dist/cjs/index.js not found" && exit 1)
33+
test -f dist/browser/index.js || (echo "dist/browser/index.js not found" && exit 1)
34+
test -f dist/esm/index.d.ts || (echo "dist/esm/index.d.ts not found" && exit 1)
3535
echo "All build outputs present!"

0 commit comments

Comments
 (0)