Skip to content

Commit

Permalink
bundler: use bunchee
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Apr 1, 2024
1 parent a869bd5 commit 37e5c66
Show file tree
Hide file tree
Showing 5 changed files with 620 additions and 454 deletions.
1 change: 1 addition & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
node-version: 20
- run: npm install pnpm -g
- run: pnpm install --no-frozen-lockfile
- run: pnpm type-check
- run: pnpm build
- run: npx playwright install --with-deps
- run: pnpm test || exit 1
Expand Down
20 changes: 14 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
"version": "1.4.41",
"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",
"type-check": "tsc --noEmit",
"build": "bunchee",
"dev": "bunchee --watch",
"dev:website": "turbo run dev --filter=website...",
"dev:test": "turbo run dev --filter=test...",
"format": "prettier --write .",
Expand Down Expand Up @@ -41,11 +49,11 @@
"@types/dompurify": "^3.0.5",
"@types/node": "^18.11.13",
"@types/react": "^18.0.26",
"bunchee": "5.1.1",
"dompurify": "^3.0.9",
"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 37e5c66

Please sign in to comment.