Skip to content

Commit

Permalink
Use bunchee as bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Dec 28, 2023
1 parent c449e27 commit 32b233d
Show file tree
Hide file tree
Showing 3 changed files with 657 additions and 392 deletions.
22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,29 @@
"version": "1.3.0",
"description": "An opinionated toast component for React.",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup src/index.tsx",
"dev": "tsup src/index.tsx --watch",
"build": "bunchee",
"dev": "bunchee --watch --sourcemap",
"dev:website": "turbo run dev --filter=website...",
"dev:test": "turbo run dev --filter=test...",
"format": "prettier --write .",
"test": "playwright test"
"test": "playwright test",
"prepublishOnly": "rm -rf dist && pnpm build"
},
"keywords": [
"react",
Expand All @@ -40,10 +48,10 @@
"@playwright/test": "^1.30.0",
"@types/node": "^18.11.13",
"@types/react": "^18.0.26",
"bunchee": "^4.2.6",
"prettier": "^2.8.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tsup": "^6.4.0",
"turbo": "1.6",
"typescript": "^4.8.4"
},
Expand Down
Loading

0 comments on commit 32b233d

Please sign in to comment.