Skip to content

Commit

Permalink
chore(build): fix warnings during build, change module file extension (
Browse files Browse the repository at this point in the history
  • Loading branch information
samrum committed May 2, 2021
1 parent 4f75d55 commit ab9493a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.14",
"description": "Unofficial package for making OnStar API requests",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
Expand Down
5 changes: 3 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ export default {
}),
],
output: [
{ file: pkg.main, format: "cjs" },
{ file: pkg.module, format: "esm" },
{ file: pkg.main, format: "cjs", exports: "default" },
{ file: pkg.module, format: "esm", exports: "default" },
],
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
"crypto",
],
};

0 comments on commit ab9493a

Please sign in to comment.