Skip to content

Commit 9142b97

Browse files
authored
Update TypeScript package.json templates (#3339)
1 parent 94c549d commit 9142b97

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Azure.Functions.Cli/StaticResources/package-ts-v4.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66
"scripts": {
77
"build": "tsc",
88
"watch": "tsc -w",
9-
"prestart": "npm run build",
9+
"clean": "rimraf dist",
10+
"prestart": "npm run clean && npm run build",
1011
"start": "func start",
1112
"test": "echo \"No tests yet...\""
1213
},
1314
"dependencies": {
14-
"@azure/functions": "^4.0.0-alpha.1"
15+
"@azure/functions": "^4.0.0-alpha.9"
1516
},
1617
"devDependencies": {
1718
"azure-functions-core-tools": "^4.x",
1819
"@types/node": "18.x",
19-
"typescript": "^4.0.0"
20+
"typescript": "^4.0.0",
21+
"rimraf": "^5.0.0"
2022
}
2123
}

src/Azure.Functions.Cli/StaticResources/package-ts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"devDependencies": {
1414
"@azure/functions": "^3.0.0",
1515
"azure-functions-core-tools": "^4.x",
16-
"@types/node": "16.x",
16+
"@types/node": "18.x",
1717
"typescript": "^4.0.0"
1818
}
1919
}

0 commit comments

Comments
 (0)