Skip to content

Commit

Permalink
refactor!: drop cjs package
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 24, 2024
1 parent c9550de commit 50628e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions package.json
Expand Up @@ -20,10 +20,7 @@
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"exports": "./dist/index.js",
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'tsup'

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

0 comments on commit 50628e8

Please sign in to comment.