Skip to content

Commit ff67039

Browse files
committed
use tsdown
1 parent bf7fa80 commit ff67039

3 files changed

Lines changed: 563 additions & 517 deletions

File tree

packages/lib/package.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
"name": "react-avatar-editor",
33
"version": "14.0.0",
44
"description": "Avatar / profile picture component. Resize and crop your uploaded image using a intuitive user interface.",
5-
"main": "./dist/index.js",
5+
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
7-
"types": "./dist/index.d.ts",
7+
"types": "./dist/index.d.cts",
88
"sideEffects": false,
99
"exports": {
1010
".": {
11-
"require": "./dist/index.js",
12-
"import": "./dist/index.mjs",
13-
"types": "./dist/index.d.ts"
11+
"require": {
12+
"types": "./dist/index.d.cts",
13+
"default": "./dist/index.cjs"
14+
},
15+
"import": {
16+
"types": "./dist/index.d.mts",
17+
"default": "./dist/index.mjs"
18+
}
1419
}
1520
},
1621
"scripts": {
17-
"build": "tsup",
22+
"build": "tsdown",
1823
"clean": "rm -rf dist",
1924
"test": "pnpm build && playwright test",
2025
"prepublishOnly": "pnpm -w lint && pnpm test && pnpm build"
@@ -23,15 +28,14 @@
2328
"dist",
2429
"src"
2530
],
26-
"dependencies": {},
2731
"peerDependencies": {
2832
"react": "^0.14.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
2933
"react-dom": "^0.14.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
3034
},
3135
"devDependencies": {
32-
"@playwright/test": "^1.40.0",
33-
"@types/react": "18.2.38",
34-
"tsup": "8.0.1"
36+
"@playwright/test": "^1.57.0",
37+
"@types/react": "19.2.7",
38+
"tsdown": "^0.16.7"
3539
},
3640
"license": "MIT",
3741
"keywords": [
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { defineConfig } from 'tsup'
1+
import { defineConfig } from 'tsdown'
22

33
export default defineConfig({
4-
entry: ['./src/index.ts'],
5-
splitting: false,
6-
sourcemap: true,
7-
dts: true,
4+
entry: './src/index.ts',
85
format: ['cjs', 'esm'],
6+
dts: true,
7+
sourcemap: true,
98
clean: true,
109
})

0 commit comments

Comments
 (0)