Skip to content

Commit

Permalink
feat: hybrid esm and cjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nesopie committed Jun 24, 2024
1 parent cd8cb4b commit fa6e704
Show file tree
Hide file tree
Showing 23 changed files with 4,535 additions and 2,724 deletions.
45 changes: 13 additions & 32 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,34 @@ on:
- master
pull_request:

permissions:
contents: read

jobs:
##################
# Jobs with matrix
##################
unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14, 'lts/*']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: npm run unit

#####################
# Jobs without matrix
#####################
coverage:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: npm run coverage
standard:
- run: npm run standard
gitdiff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: npm run standard
- run: npm run gitdiff
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.nyc_output
.coverage
50 changes: 0 additions & 50 deletions base.js

This file was deleted.

1 change: 1 addition & 0 deletions coverage/tmp/coverage-34727-1719229523049-0.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions coverage/tmp/coverage-34728-1719229522741-0.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions coverage/tmp/coverage-34746-1719229523030-0.json

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions index.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions index.js

This file was deleted.

Loading

0 comments on commit fa6e704

Please sign in to comment.