Skip to content

Commit

Permalink
refactor!: remove cjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 17, 2023
1 parent 80e4a0d commit 874a651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,8 @@
"description": "rollup-plugin-copy for vite with dev server support.",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"exports": "./dist/index.js",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default defineConfig({
entry: ['src/index.ts'],
target: 'node18',
dts: true,
format: ['esm', 'cjs']
format: 'esm'
})

0 comments on commit 874a651

Please sign in to comment.