Skip to content

Commit e7fdb71

Browse files
committed
chore: update bundle and improve build process
- Add browser export to package.json for better browser compatibility - Add build verification step in release workflow - Update TRubyBundle.ts with latest T-Ruby source files Related to #2
1 parent 965b70d commit e7fdb71

File tree

3 files changed

+69097
-2
lines changed

3 files changed

+69097
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ jobs:
7575
- name: Build
7676
run: npm run build
7777

78+
- name: Verify build output
79+
run: |
80+
echo "Verifying build output..."
81+
ls -la dist/
82+
test -f dist/index.js || (echo "ERROR: dist/index.js not found" && exit 1)
83+
test -f dist/index.cjs || (echo "ERROR: dist/index.cjs not found" && exit 1)
84+
test -f dist/index.d.ts || (echo "ERROR: dist/index.d.ts not found" && exit 1)
85+
echo "Build verification passed!"
86+
7887
- name: Update version
7988
run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version --allow-same-version
8089

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"exports": {
1010
".": {
1111
"types": "./dist/index.d.ts",
12+
"browser": "./dist/index.js",
1213
"import": "./dist/index.js",
1314
"require": "./dist/index.cjs"
1415
}

0 commit comments

Comments
 (0)