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

build: fix types for cjs #121

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Changes from all commits
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
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"type": "module",
"exports": {
".": {
"types": "./lib/index.d.ts",
"types": {
"import": "./lib/index.d.ts",
"require": "./lib/index.d.cts"
},
RebeccaStevens marked this conversation as resolved.
Show resolved Hide resolved
"import": "./lib/index.js",
"require": "./lib/index.cjs"
}
Expand All @@ -24,7 +27,7 @@
"README.md"
],
"scripts": {
"build": "tsup src/index.ts --clean --format cjs,esm --outDir lib --dts",
"build": "tsup src/index.ts --clean --format cjs,esm --outDir lib --dts && cp lib/index.d.ts lib/index.d.cts",
"docs": "typedoc",
"docs:serve": "http-serve docs/generated",
"format": "prettier \"**/*\" --ignore-unknown",
Expand Down