Skip to content

Commit

Permalink
feat: exports both esm and commonjs
Browse files Browse the repository at this point in the history
Cleanup of the project, package now is ESM but also exports commondjs.

BREAKING CHANGE: ESM package with CommonJS export
  • Loading branch information
simonecorsi committed Jun 6, 2022
1 parent 87e2805 commit 6056596
Show file tree
Hide file tree
Showing 15 changed files with 5,055 additions and 11,633 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
"plugin:node/recommended",
],
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/merge.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,7 @@ name: Release
on: [workflow_dispatch]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x, 14.x, 16.x]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm it

release:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*
!libs/*
!index.js
!src/*
!index.d.ts
11 changes: 0 additions & 11 deletions .taprc

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions nyc.config.js

This file was deleted.

Loading

0 comments on commit 6056596

Please sign in to comment.