Skip to content

Commit

Permalink
feat: bundle ESM compatible exports
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Mar 5, 2021
1 parent 103f028 commit b58a3aa
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 204 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"scripts": {
"test": "jest",
"lint": "eslint src __tests__ --ext js,ts --fix",
"build": "tsc -b src",
"postbuild": "gen-esm-wrapper dist/index.js dist/index.mjs",
"watch": "tsc -b src -w",
"clean": "tsc -b src --clean",
"docs": "typedoc",
Expand Down Expand Up @@ -42,6 +47,7 @@
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"gen-esm-wrapper": "^1.1.1",
"husky": "^5.1.3",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"extends": "@sapphire/ts-config",
"compilerOptions": {
"target": "ES6",
"isolatedModules": true
}
"extends": "@sapphire/ts-config"
}
Loading

0 comments on commit b58a3aa

Please sign in to comment.