Skip to content

Commit

Permalink
added esm support (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant-fundwave authored Nov 7, 2023
1 parent 3f98df1 commit 55658a8
Show file tree
Hide file tree
Showing 6 changed files with 4,854 additions and 1,545 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run lint
Expand All @@ -37,7 +37,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -96,6 +96,7 @@ jobs:
branch: ${{ github.ref }}

- name: Release
if: ${{ github.ref_name == 'main'}}
env:
VERSION: ${{ steps.version.outputs.newTag }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

A client-side library that allows you to queue fetch requests.

- Supports ES modules
- Supports CommonJS

## Installation

```sh
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default {
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
moduleNameMapper: { "node-fetch": "<rootDir>/node_modules/node-fetch" },
moduleNameMapper: { "node-fetch": "<rootDir>/node_modules/node-fetch-jest" },
};
Loading

0 comments on commit 55658a8

Please sign in to comment.