Skip to content

Commit ae690eb

Browse files
committed
fix bug
1 parent cccaaa1 commit ae690eb

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/browser.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,25 @@ jobs:
2222
- uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 10
25+
2526
- name: Use Node.js 20.x
2627
uses: actions/setup-node@v4
2728
with:
2829
node-version: 20.x
29-
- run: npm ci
3030

31-
- name: Setup upterm session
32-
uses: lhotari/action-upterm@v1
31+
- run: npm ci
3332

33+
# Uncomment to debug workflow
34+
# - name: Setup upterm session
35+
# uses: lhotari/action-upterm@v1
3436

3537
- name: Test Browser
3638
run: npm run test:browser
3739
env:
3840
CI: true
3941
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }}
4042
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
43+
4144
- run: npx bundlewatch --config bundlewatch.config.json
4245
env:
4346
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

scripts/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ echo "Building in $NODE_DIST_DIR and $BROWSER_DIST_DIR"
2020
cd "$ROOT" || exit 1
2121

2222
rm -rf "$NODE_DIST_DIR" "$BROWSER_DIST_DIR"
23-
mkdir -p "$NODE_DIST_DIR" "$BROWSER_DIST_DIR"
23+
mkdir -p "$NODE_DIST_DIR"
2424

2525
# Build each module type
2626
echo "Compiling TypeScript files to $NODE_DIST_DIR"
2727

2828
tsc -p tsconfig.json
2929

3030
# Clone files for browser builds
31-
cp -pr "$NODE_DIST_DIR/" "$BROWSER_DIST_DIR"
31+
cp -pr "$NODE_DIST_DIR" "$BROWSER_DIST_DIR"
32+
3233
# Remove browser files from non-browser builds
33-
for FILE in ${NODE_DIST_DIR}/*-browser*;do
34+
for FILE in ${NODE_DIST_DIR}/*-browser*; do
3435
rm -f $FILE
3536
done
3637

0 commit comments

Comments
 (0)