Support ts-node app driver
See original GitHub issueInstead of requiring a build step to convert the Typescript code to javascript, it would help development cycle time if cdk.json could say something like:
{
"app": "ts-node bin/deploy.ts"
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:20 (14 by maintainers)
Top Results From Across the Web
ts-node - npm
ts -node supports a variety of options which can be specified via tsconfig.json , as CLI flags, as environment variables, or programmatically.
Read more >TypeScript Support in the DataStax Node.js Drivers
I'm happy to announce built-in TypeScript support in our DataStax Node.js drivers for Apache Cassandra and DataStax Enterprise Node.js ...
Read more >TypeScript Setup - WebdriverIO
You will need typescript and ts-node installed as devDependencies , via: npm; Yarn. $ npm install typescript ts-node ...
Read more >Building a Production - Ready Node.js App with TypeScript ...
In this article, we will see how to build a Nodejs, TypeScript Application and deploy it to server with Docker.
Read more >Node, TypeScript, Azure Web Apps — what could go wrong. A ...
And Azure Web App only supports 32bit node. In that case, you will need to ship your own version of node; Your typescript...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the missing piece of information here was “Windows”.
Your npx executable probably ends up being called
npx.bat
ornpx.cmd
. If you just typenpx
on the command-line,cmd.exe
is going to try all the possible extensions, but our launcher won’t. Try updating yourcdk.json
to:(Or
npx.cmd
… or maybe it’s evennpx.js
?)Seems like the toolkit can’t find
npx
on your system. What node.js version are you using?I verified the following configuration works with 0.19.0 and node.js v10.13.0:
cdk.json
package.json: