Skip to content

Commit

Permalink
chore(examples/azure-functions): use watch mode of func host, instead…
Browse files Browse the repository at this point in the history
… of using express plugin in dev mode
  • Loading branch information
mildronize committed May 9, 2024
1 parent 4d89322 commit 5332d97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/azure-functions/host.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.15.0, 4.0.0)"
}
},
"watchDirectories": [ "dist" ]
}
5 changes: 3 additions & 2 deletions examples/azure-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "dist/src/main.js",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"lint": "tsc --noEmit",
"start": "tsc && func start",
"dev": "cross-env NODE_ENV=development tsx watch src/main.ts"
"start": "func start",
"dev": "run-p build:watch start"
},
"author": "Thada Wangthammang",
"license": "MIT",
Expand Down

0 comments on commit 5332d97

Please sign in to comment.