Skip to content

Commit

Permalink
CommonJS --> ESM (#16)
Browse files Browse the repository at this point in the history
* CommonJS --> ESM 
* node 20
* top level await
* nyc -> c8
  • Loading branch information
chris48s authored Oct 24, 2023
1 parent 64b1eca commit 07a9c1f
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 2,376 deletions.
File renamed without changes.
5 changes: 2 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"env": {
"node": true,
"commonjs": true,
"es2021": true,
"es2022": true,
"mocha": true
},
"extends": [
Expand All @@ -14,7 +13,7 @@
"mocha"
],
"parserOptions": {
"ecmaVersion": 12
"sourceType": "module"
},
"rules": {
"prettier/prettier": [
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
node_modules/

# coverage
.nyc_output/
coverage/
8 changes: 4 additions & 4 deletions dist/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
Loading

0 comments on commit 07a9c1f

Please sign in to comment.