Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove .cjs output #32

Merged
merged 2 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
wip
  • Loading branch information
hwhmeikle committed May 17, 2023
commit fb1ef78ce577c599162e252e5ddcc4d8a73743bd
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "@authsignal/browser",
"version": "0.1.2",
"module": "dist/index.mjs",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"keywords": [
"authsignal",
Expand Down Expand Up @@ -47,7 +49,7 @@
],
"exports": {
".": {
"import": "./dist/index.mjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
Expand Down
3 changes: 1 addition & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import typescript from "@rollup/plugin-typescript";
import pkg from "./package.json";
import {nodeResolve} from "@rollup/plugin-node-resolve";

export default {
input: "src/index.ts",
output: [
{
file: pkg.module,
file: "dist/index.js",
format: "esm",
},
],
Expand Down