Skip to content

Commit baf3b75

Browse files
build: remove sourcemaps for deterministic dist
Sourcemaps embed absolute paths which differ between build environments, causing CI to fail. GitHub Actions don't need sourcemaps anyway.
1 parent 483095f commit baf3b75

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jobs:
4444
- name: Verify dist is up to date
4545
if: matrix.node-version == 20
4646
run: |
47-
# Check if main dist file is up to date (ignore sourcemaps which can differ between environments)
48-
git diff --exit-code dist/index.js || (echo "::error::dist/index.js is out of date. Run 'npm run build' and commit the changes." && exit 1)
47+
# Check if dist files are up to date
48+
git diff --exit-code dist/ || (echo "::error::dist/ is out of date. Run 'npm run build' and commit the changes." && exit 1)

0 commit comments

Comments
 (0)