Skip to content

Commit

Permalink
fix package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Aug 14, 2024
1 parent 1ddea66 commit 8332733
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
"author": "v1rtl <[email protected]>",
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
"import": {
"types": "./index.d.ts",
"default": "./index.js"
},
"require": {
"types": "./index.d.cts",
"default": "./index.cjs"
}
},
"type": "module",
"types": "./dist/index.d.ts",
Expand All @@ -29,9 +32,7 @@
"homepage": "https://github.com/ensdomains/headless-web3-provider#readme",
"scripts": {
"test": "playwright test",
"build:esm": "tsup",
"build:cjs": "tsup --config tsup.cjs.config.ts",
"build": "pnpm build:cjs && pnpm build:esm",
"build": "tsup",
"check": "biome check",
"fmt": "biome format",
"lint": "biome lint"
Expand Down
7 changes: 0 additions & 7 deletions tsup.cjs.config.ts

This file was deleted.

3 changes: 1 addition & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
format: ['esm'],
bundle: true,
format: ['esm', 'cjs'],
dts: true,
})

0 comments on commit 8332733

Please sign in to comment.