Skip to content

Commit

Permalink
chore: pnpm devに変数を渡して開発対象を選択できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
imoken777 committed Oct 23, 2024
1 parent cfc575b commit 53f1bf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ pnpm i

2. Start Typespec watcher and documentation server from openapi

selectedAPIName is the name of `openapi.${selectedAPIName}.yaml`

```bash
pnpm dev
NAME=${selectedAPIName} pnpm dev
```

### Scripts
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "pnpm /^dev:.*/",
"dev": "pnpm dev:tsp & pnpm dev:docs",
"dev:tsp": "pnpm build:tsp --watch",
"dev:docs": "redocly preview-docs",
"dev:docs": "redocly preview-docs ./dist/@typespec/openapi3/openapi.$NAME.yaml",
"build": "pnpm build:tsp && pnpm build:docs",
"build:tsp": "tsp compile ./src --output-dir ./dist",
"build:docs": "redocly build-docs -o ./dist/doc/index.html",
Expand All @@ -31,4 +31,4 @@
"prettier": "^3.3.3"
},
"private": true
}
}

0 comments on commit 53f1bf6

Please sign in to comment.