FWIW, the error I get is:
error: Running program 'C:\Users\Nolan\projects\infrastructure' failed with an unhandled exception:
SyntaxError: Unexpected identifier
at Object.<anonymous> (C
\Users\Nolan\projects\infrastructure\index.ts42:128)
at Module._compile (node
internal/modules/cjs/loader1101:14)
at Module.m._compile (C
\Users\Nolan\projects\infrastructure\node modules\ts node\src\index.ts439:23)
at Module._extensions..js (node
internal/modules/cjs/loader1153:10)
at Object.require.extensions.<computed> [as .ts] (C
\Users\Nolan\projects\infrastructure\node modules\ts node\src\index.ts442:12)
at Module.load (node
internal/modules/cjs/loader981:32)
at Function.Module._load (node
internal/modules/cjs/loader822:12)
at Module.require (node
internal/modules/cjs/loader1005:19)
at require (node
internal/modules/cjs/helpers94:18)
at Object.<anonymous> (C:\Users\Nolan\projects\infrastructure\node_modules\@pulumi\pulumi\cmd\run\run.js
21931)
Right after
toString()
. And again, `eval("``"+"${1+2}"+"``")` works in the REPL, so this should work for quick-and-dirty templating I'd think.