Skip to content

Commit 24fb643

Browse files
huozhinevilm-lt
authored andcommitted
Improve watch commands (vercel#1788)
1 parent f83d62b commit 24fb643

File tree

4 files changed

+13
-82
lines changed

4 files changed

+13
-82
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ All examples are built with Next.js, so Next.js commands are all supported:
4242

4343
```sh
4444
# if you want to build and start
45-
yarn dev-next basic build
46-
yarn dev-next basic start
45+
yarn next build examples/basic
46+
yarn next start examples/basic
4747
```
4848
## Update Documentation
4949

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"scripts": {
4040
"clean": "rimraf dist infinite/dist immutable/dist",
4141
"build": "yarn build:core && yarn build:infinite && yarn build:immutable",
42-
"watch": "node scripts/watch.js",
43-
"watch:core": "node scripts/watch.js core",
44-
"watch:infinite": "node scripts/watch.js infinite",
45-
"watch:immutable": "node scripts/watch.js immutable",
42+
"watch": "npm-run-all -p watch:core watch:infinite watch:immutable",
43+
"watch:core": "yarn build:core -w",
44+
"watch:infinite": "yarn build:infinite -w",
45+
"watch:immutable": "yarn build:immutable -w",
4646
"build:core": "bunchee src/index.ts --no-sourcemap",
4747
"build:infinite": "bunchee index.ts --cwd infinite --no-sourcemap",
4848
"build:immutable": "bunchee index.ts --cwd immutable --no-sourcemap",
@@ -78,7 +78,7 @@
7878
"@types/react": "17.0.20",
7979
"@typescript-eslint/eslint-plugin": "5.8.0",
8080
"@typescript-eslint/parser": "5.8.0",
81-
"bunchee": "1.8.0",
81+
"bunchee": "1.8.2",
8282
"eslint": "8.3.0",
8383
"eslint-config-prettier": "8.3.0",
8484
"eslint-plugin-jest-dom": "3.9.2",
@@ -96,8 +96,8 @@
9696
"react-dom-experimental": "npm:react-dom@alpha",
9797
"react-experimental": "npm:react@alpha",
9898
"rimraf": "3.0.2",
99-
"typescript": "4.4.3",
100-
"swr": "link:./"
99+
"swr": "link:./",
100+
"typescript": "4.4.3"
101101
},
102102
"peerDependencies": {
103103
"react": "^16.11.0 || ^17.0.0 || ^18.0.0"

scripts/watch.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,10 +2291,10 @@ builtin-modules@^3.1.0:
22912291
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.2.0.tgz#45d5db99e7ee5e6bc4f362e008bf917ab5049887"
22922292
integrity sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==
22932293

2294-
2295-
version "1.8.0"
2296-
resolved "https://registry.yarnpkg.com/bunchee/-/bunchee-1.8.0.tgz#51ac0badcaf7218dc9977d658c2992765236cdaa"
2297-
integrity sha512-fRgiDsPjEwlWEKfIRCu3XeE5IdYZ0x4I4K2tcpyrYOjuW5re6kYXjuMi1IVBZ90PBb+13XApIUJ+QBfptn+SEA==
2294+
2295+
version "1.8.2"
2296+
resolved "https://registry.yarnpkg.com/bunchee/-/bunchee-1.8.2.tgz#7423e40de5635640c7c792322baf1089f51ca3e0"
2297+
integrity sha512-i8NfUIQcC7VIGbninHTzM/PnEHD+b0pkCcSMVKb5N8nAK6On32f2N3vHczzYk0FcwxuIt27r2zB0yTMErLTfSA==
22982298
dependencies:
22992299
"@rollup/plugin-babel" "5.2.1"
23002300
"@rollup/plugin-commonjs" "20.0.0"

0 commit comments

Comments
 (0)