Skip to content

Commit

Permalink
Remove .cjs output (#32)
Browse files Browse the repository at this point in the history
* Remove cjs output

* wip
  • Loading branch information
hwhmeikle committed May 17, 2023
1 parent f11818d commit d5c00b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@authsignal/browser",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"keywords": [
"authsignal",
Expand Down Expand Up @@ -48,8 +49,7 @@
],
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
Expand Down
6 changes: 1 addition & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ export default {
input: "src/index.ts",
output: [
{
dir: "dist",
format: "cjs",
},
{
file: "dist/index.mjs",
file: "dist/index.js",
format: "esm",
},
],
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"moduleResolution": "node",
"esModuleInterop": true,
"resolveJsonModule": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"rootDir": "src"
},
"include": ["./src/**/*.ts"]
}

0 comments on commit d5c00b6

Please sign in to comment.