mirror of
https://github.com/lancedikson/bowser
synced 2026-09-23 04:24:54 +00:00
fix: bundled.js is not ES5 — restore ES5 output and guard it (#632)
This commit is contained in:
10
.github/workflows/pull-request.yml
vendored
10
.github/workflows/pull-request.yml
vendored
@@ -128,3 +128,13 @@ jobs:
|
||||
# of bowser, and preserved here on purpose.
|
||||
- name: Are the types wrong?
|
||||
run: pnpm exec attw --pack . --profile node16 --entrypoints .
|
||||
|
||||
# attw checks that the types *resolve* to the right file per condition.
|
||||
# This compiles a real consumer against the packed tarball in every
|
||||
# module resolution mode, which is what catches a declaration that
|
||||
# resolves fine but does not match the runtime.
|
||||
- name: Type-check consumers
|
||||
run: |
|
||||
mkdir -p tarball
|
||||
npm pack --pack-destination ./tarball
|
||||
node test/types/check.mjs tarball/*.tgz
|
||||
|
||||
Reference in New Issue
Block a user