Skip to content

Commit

Permalink
Fixes the azure-ts-webserver example so it now builds - Issue pulumi#…
Browse files Browse the repository at this point in the history
…1221 (pulumi#1222)

* Fixes the azure-ts-webserver example so it now builds - Issue pulumi#1221

* Turn on strict mode in the example

Co-authored-by: Glenn Prince <[email protected]>
Co-authored-by: Ian Wahbe <[email protected]>
  • Loading branch information
3 people committed May 21, 2022
1 parent 2ee921d commit 1967945
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure-ts-webserver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const networkInterface = new network.NetworkInterface("server-nic", {
resourceGroupName,
ipConfigurations: [{
name: "webserveripcfg",
subnet: { id: virtualNetwork.subnets[0].id },
subnet: virtualNetwork.subnets.apply(subnet => subnet![0]),
privateIPAllocationMethod: network.IPAllocationMethod.Dynamic,
publicIPAddress: { id: publicIp.id },
}],
Expand Down
5 changes: 3 additions & 2 deletions azure-ts-webserver/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"compilerOptions": {
"outDir": "bin",
"strict": true,
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts",
"index.ts"
]
}

0 comments on commit 1967945

Please sign in to comment.