Skip to content

Commit

Permalink
chore: Add dev script (#645)
Browse files Browse the repository at this point in the history
Use `pnpm dev` to build both packages in watch mode.

Also, upgrades `bunchee` to get past [a bug in its watch
mode](huozhi/bunchee#383). This is a big
upgrade (two major versions), but everything builds fine—the upgrade
doesn't appear to be as breaking as that sounds. Worth double-checking,
though.
  • Loading branch information
Peeja authored Oct 7, 2024
1 parent 07949be commit 8d44b9a
Show file tree
Hide file tree
Showing 5 changed files with 542 additions and 359 deletions.
2 changes: 1 addition & 1 deletion examples/react/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@w3ui/react": "workspace:^"
},
"devDependencies": {
"bunchee": "^3.9.3",
"bunchee": "^5.5.0",
"eslint-plugin-react-hooks": "^4.6.0",
"react": "^18.2.0",
"typescript": "^5.3.2"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"prepare": "pnpm run build && pnpm run compile",
"build": "pnpm run --recursive --if-present build",
"dev": "pnpm run --filter './packages/*' --if-present --parallel dev",
"clean": "rm -rf node_modules coverage packages/*/{dist,build,node_modules}",
"compile": "pnpm run --recursive --if-present compile",
"format": "pnpm --recursive --if-present run lint --fix",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "bunchee",
"dev": "bunchee --watch",
"lint": "tsc --build && eslint '**/*.{js,jsx,ts,tsx}'",
"test": "vitest run",
"test:watch": "vitest watch"
Expand Down Expand Up @@ -46,7 +47,7 @@
"build"
],
"devDependencies": {
"bunchee": "^3.9.3",
"bunchee": "^5.5.0",
"fake-indexeddb": "^5.0.1",
"happy-dom": "^12.10.3",
"vitest": "^1.0.1"
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "bunchee",
"dev": "bunchee --watch",
"lint": "tsc --build && eslint '**/*.{js,jsx,ts,tsx}'",
"test": "vitest run",
"test:watch": "vitest watch"
Expand Down Expand Up @@ -41,7 +42,7 @@
"@ucanto/interface": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/transport": "^9.1.1",
"bunchee": "^3.9.3",
"bunchee": "^5.5.0",
"eslint-plugin-react-hooks": "^4.6.0",
"fake-indexeddb": "^5.0.1",
"happy-dom": "^12.10.3",
Expand Down
Loading

0 comments on commit 8d44b9a

Please sign in to comment.