Skip to content

Commit

Permalink
update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Feb 6, 2024
1 parent f1a17e7 commit 666e737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"import": "./dist/index.d.ts"
},
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
"import": "./dist/index.js"
},
"./client": {
"types": {
"require": "./dist/client/index.d.cts",
"import": "./dist/client/index.d.ts"
},
"require": "./dist/client/index.cjs",
"import": "./dist/client/index.mjs"
"import": "./dist/client/index.js"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
Expand Down
7 changes: 1 addition & 6 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,5 @@ export default defineConfig({
splitting: false,
clean: true,
external: ['#app', '#imports', /@trpc\/client/, /@trpc\/server/],
dts: true,
outExtension ({ format }) {
return {
js: format === 'esm' ? '.mjs' : `.${format}`
}
}
dts: true
})

0 comments on commit 666e737

Please sign in to comment.