Skip to content

Commit

Permalink
fix: target commonjs and enable esm
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCuthbert committed Feb 7, 2022
1 parent 67a1891 commit 471aaeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0-semantic-release",
"description": "Provide Next.js routes for monitoring and management of your application in Production.",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Jack Cuthbert <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
/* ESM */
"moduleResolution": "node",
"target": "ES2017",
"module": "es2015",
"target": "es2019",
"module": "CommonJS",

/* Build */
"rootDir": "./src",
Expand Down

0 comments on commit 471aaeb

Please sign in to comment.