Skip to content

Commit

Permalink
build: use bunchee (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Feb 12, 2025
1 parent e852c61 commit 64e7b83
Show file tree
Hide file tree
Showing 4 changed files with 719 additions and 749 deletions.
19 changes: 13 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
"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"
},
"default": "./dist/index.js"
},
"./dist/styles.css": "./dist/styles.css"
},
Expand All @@ -16,8 +22,9 @@
"dist"
],
"scripts": {
"build": "tsup src/index.tsx && cp src/styles.css dist/styles.css",
"dev": "tsup src/index.tsx --watch",
"dev": "bunchee --watch",
"build": "bunchee && cp src/styles.css dist/styles.css",
"type-check": "tsc --noEmit",
"dev:website": "turbo run dev --filter=website...",
"dev:test": "turbo run dev --filter=test...",
"format": "prettier --write .",
Expand All @@ -44,10 +51,10 @@
"@playwright/test": "^1.49.1",
"@types/node": "^18.11.13",
"@types/react": "^18.0.26",
"bunchee": "^6.3.3",
"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 64e7b83

Please sign in to comment.