chore(tools): add package selector to dev command (#9328)

This commit is contained in:
liuyi
2024-12-26 20:34:17 +08:00
committed by GitHub
parent 4ae8c2f4ef
commit 0af46c966d
18 changed files with 224 additions and 232 deletions

View File

@@ -46,7 +46,7 @@ yarn affine init
```json
{
"name": "@affine/demo"
"name": "@affine/demo",
"scripts": {
"dev": "node ./dev.ts"
}
@@ -57,6 +57,20 @@ yarn affine init
affine @affine/demo dev
```
or
```json
{
"name": "@affine/demo",
"scripts": {
"dev": "r ./src/index.ts"
},
"devDependencies": {
"@affine-tools/cli": "workspace:*"
}
}
```
### Short your key presses
```bash
@@ -111,3 +125,7 @@ restart all the integrated terminals and now you get:
```bash
af web build
```
```
```