File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
ts-framework/create-function Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @gram-ai/create-function " : minor
3+ ---
4+
5+ Enables hot reloading in dev for function templates
Original file line number Diff line number Diff line change 1313
1414## ` package.json ` scripts
1515
16+ - ` dev ` - Runs the MCP Inspector playground with hot reloading enabled.
1617- ` build ` - Bundles the Gram Functions code into a zip file for deployment and places it in the ` dist/ ` directory.
1718- ` lint ` - Runs the TypeScript compiler in ` noEmit ` mode to check for type errors.
1819
Original file line number Diff line number Diff line change 1919 "node" : " >=22.18.0"
2020 },
2121 "scripts" : {
22- "dev" : " mcp-inspector node ./src/server.ts" ,
22+ "dev" : " mcp-inspector nodemon -q --watch src --exec node ./src/server.ts" ,
2323 "lint" : " tsc --noEmit" ,
2424 "_:build" : " gf build" ,
2525 "push" : " gf push" ,
3333 },
3434 "devDependencies" : {
3535 "@modelcontextprotocol/inspector" : " ^0.17.1" ,
36+ "nodemon" : " ^3.1.9" ,
3637 "@types/node" : " 22.x" ,
3738 "typescript" : " ^5"
3839 }
39- }
40+ }
Original file line number Diff line number Diff line change 1919 "node" : " >=22.18.0"
2020 },
2121 "scripts" : {
22- "dev" : " mcp-inspector node ./src/server.ts" ,
22+ "dev" : " mcp-inspector nodemon -q --watch src --exec node ./src/server.ts" ,
2323 "_:build" : " gf build" ,
2424 "push" : " gf push" ,
2525 "prebuild" : " tsc -p tsconfig.json" ,
3232 },
3333 "devDependencies" : {
3434 "@modelcontextprotocol/inspector" : " ^0.17.1" ,
35+ "nodemon" : " ^3.1.9" ,
3536 "@types/node" : " 22.x" ,
3637 "typescript" : " ^5"
3738 }
38- }
39+ }
You can’t perform that action at this time.
0 commit comments