build: use workspaces for example subfolders (#23)
* use npm workspaces * Update package.json
This commit is contained in:
parent
b4c6019d47
commit
3e5ec1ae0b
1 changed files with 7 additions and 3 deletions
|
|
@ -22,9 +22,12 @@
|
|||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"workspaces": [
|
||||
"examples/*"
|
||||
],
|
||||
"scripts": {
|
||||
"start:example-host": "cd examples/simple-host && npm --registry=https://registry.npmjs.org/ i && npm start",
|
||||
"start:example-mcp-server": "cd examples//simple-server && npm --registry=https://registry.npmjs.org/ install && npm start",
|
||||
"start:example-host": "cd examples/simple-host && npm start",
|
||||
"start:example-mcp-server": "cd examples/simple-server && npm start",
|
||||
"start": "NODE_ENV=development npm run build && concurrently 'npm run start:example-host' 'npm run start:example-mcp-server'",
|
||||
"build": "bun build.bun.ts",
|
||||
"prepare": "npm run build && husky",
|
||||
|
|
|
|||
Loading…
Reference in a new issue