Skip to content

Commit

Permalink
Use bunchee as bundler (#260)
Browse files Browse the repository at this point in the history
* Use bunchee as bundler

* fix types and exports
  • Loading branch information
huozhi committed Feb 12, 2024
1 parent b7d7640 commit 8cba85e
Show file tree
Hide file tree
Showing 6 changed files with 881 additions and 717 deletions.
28 changes: 19 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,26 @@
"name": "vaul",
"version": "0.9.0",
"description": "Drawer component for React.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"exports": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
"type-check": "tsc --noEmit",
"build": "pnpm type-check && tsup src/index.tsx",
"dev": "tsup src/index.tsx --watch",
"build": "pnpm type-check && bunchee",
"dev": "bunchee --watch",
"dev:website": "turbo run dev --filter=website...",
"dev:test": "turbo run dev --filter=test...",
"format": "prettier --write .",
Expand All @@ -34,16 +44,16 @@
"url": "https://github.com/emilkowalski/vaul/issues"
},
"devDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@playwright/test": "^1.37.1",
"@radix-ui/react-dialog": "^1.0.4",
"@types/node": "20.5.7",
"@types/react": "18.2.52",
"@types/react": "18.2.55",
"@types/react-dom": "18.2.18",
"bunchee": "^4.4.6",
"eslint": "^7.32.0",
"prettier": "^2.5.1",
"tsup": "^6.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"turbo": "1.6",
"typescript": "5.2.2"
},
Expand Down
Loading

0 comments on commit 8cba85e

Please sign in to comment.