Compiling Typescript with Hosted Targets

Hi Community,

I have a node.js app written using typescript.

How can I setup the package.json file so that it get compiled correctly when being deployed as a hosted target ?

1 2 254
2 REPLIES 2

I don't think you can have or want to have Edge compile your TS code, you would do that prior to deploying to Edge, which is analogous to compiling Java prior to deployment.

You can use the package.json that Edge creates from the "Hello World" Sample.

Yes; if you are deploying to Google Cloud App Engine, you can rely on App Engine to do the TS compilation. Per this source. But with a Hosted Target, which is an Apigee layer on top of App Engine, that TS compilation step is manual.