Skip to content

Commit

Permalink
Merge pull request #782 from wheresrhys/rhys/build-esm
Browse files Browse the repository at this point in the history
build: fetch-mock now builds esm as well as cjs dist files
  • Loading branch information
wheresrhys authored Aug 8, 2024
2 parents ade91d6 + 42cb802 commit a90cc41
Show file tree
Hide file tree
Showing 14 changed files with 1,819 additions and 2,717 deletions.
41 changes: 22 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ references:
filters:
tags:
only: /.*/
run-after-first-jobs: &run-after-first-jobs
requires:
- test
- lint
- build

nodelts: &nodelts
docker:
Expand All @@ -31,6 +26,15 @@ references:
root: .
paths:
- .
after-build-test-lint: &after-build-test-lint
requires:
- test
- lint
- build
after-build-lint: &after-build-lint
requires:
- lint
- build

jobs:
checkout_code:
Expand Down Expand Up @@ -59,13 +63,12 @@ jobs:
- run: npm run lint:ci
- run: npm run prettier:ci

typelint:
typecheck:
<<: *nodelts
steps:
- *workspace
- run: npm run types:lint
- run: npm run types:check --noEmit=true

- run: npm run types:check -w packages/fetch-mock
test:
<<: *nodelts
steps:
Expand Down Expand Up @@ -140,37 +143,37 @@ workflows:
<<: *triggerable-by-tag
requires:
- checkout_code
- typelint:
- typecheck:
<<: *triggerable-by-tag
requires:
- checkout_code
<<: *after-build-lint
- nodefetch3:
<<: *triggerable-by-tag
<<: *run-after-first-jobs
<<: *after-build-test-lint
- commonjs:
<<: *triggerable-by-tag
<<: *run-after-first-jobs
<<: *after-build-test-lint
- jest:
<<: *triggerable-by-tag
<<: *run-after-first-jobs
<<: *after-build-lint
- module-compat:
<<: *triggerable-by-tag
requires:
- build
<<: *after-build-lint
# - chrome:
# <<: *triggerable-by-tag
# <<: *run-after-first-jobs
# <<: *after-build-test-lint
# - firefox:
# <<: *triggerable-by-tag
# <<: *run-after-first-jobs
# <<: *after-build-test-lint
- publish:
requires:
- nodefetch3
# - chrome
# - firefox
- build
- test
- lint
- module-compat
- typelint
- typecheck
- commonjs
- jest
filters:
Expand Down
Loading

0 comments on commit a90cc41

Please sign in to comment.