Skip to content

Commit

Permalink
Merge pull request #63 from derrickreimer/add-types-to-exports
Browse files Browse the repository at this point in the history
Add types to exports in package.json
  • Loading branch information
derrickreimer authored Jul 10, 2024
2 parents 0e12253 + d4bf37b commit 48f0bcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"module": "dist/fathom-client.esm.js",
"main": "dist/fathom-client.cjs",
"exports": {
"types": {
"import": "./types/index.d.ts",
"require": "./types/index.d.cts"
},
"import": "./dist/fathom-client.esm.js",
"require": "./dist/fathom-client.cjs"
},
Expand All @@ -31,7 +35,7 @@
"build": "npm run build:types && npm run build:cjs && npm run build:esm",
"build:cjs": "esbuild src/index.ts --bundle --format=cjs --outfile=dist/fathom-client.cjs",
"build:esm": "esbuild src/index.ts --bundle --format=esm --outfile=dist/fathom-client.esm.js",
"build:types": "tsc --emitDeclarationOnly",
"build:types": "tsc --emitDeclarationOnly && cp ./types/index.d.ts ./types/index.d.cts",
"lint": "npx tsc --noEmit && npx prettier src -c",
"prepare": "npm run build",
"test": "npm run build && jest",
Expand Down

0 comments on commit 48f0bcf

Please sign in to comment.