Skip to content

Commit

Permalink
don't split to entrypoints because ens-app-v3 doesn't allow package e…
Browse files Browse the repository at this point in the history
…xports
  • Loading branch information
talentlessguy committed Aug 14, 2024
1 parent 942296b commit e0abb50
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 27 deletions.
31 changes: 7 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,16 @@
"author": "v1rtl <[email protected]>",
"license": "MIT",
"exports": {
"./playwright": {
"types": "./dist/playwright.d.ts",
"import": "./dist/playwright.js",
"require": "./dist/playwright.cjs"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.js",
"require": "./dist/types.cjs"
},
"./factory": {
"types": "./dist/factory.d.ts",
"import": "./dist/factory.js",
"require": "./dist/factory.cjs"
},
"./backend": {
"types": "./dist/backend.d.ts",
"import": "./dist/backend.js",
"require": "./dist/backend.cjs"
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.js",
"require": "./dist/utils.cjs"
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"type": "module",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"sideEffects": false,
"files": [
"dist"
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from './backend.js'
export * from './playwright.js'
export * from './utils.js'
export * from './types.js'
export * from './factory.js'
2 changes: 1 addition & 1 deletion tsup.cjs.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src'],
entry: ['src/index.ts'],
format: ['cjs'],
dts: false,
})
4 changes: 2 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'tsup'

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

0 comments on commit e0abb50

Please sign in to comment.