Skip to content
Advertisement

Tag: yarnpkg

How do I transpile TypeScript to JavaScript with Yarn?

How do I transpile TypeScript code in JavaScript in a project managed by Yarn? I need Javascript code in order to run it with other compilers (such as GraalVM) and investigate performance. Answer You can do it by adding a build rule to your package.json. Replace . with the path to your tsconfig.json file which, for example, contains the following

Node engine 8.x or 10.x in package.json

I tried to specify the node engine in a package.json to accept both 8 and 10 version. I tried to type this: But running yarn results in: The engine “node” is incompatible with this module. Expected version “8.x|10.x” If I replace with: … it works (i.e no error). Is there a way to accept two versions of node engine in

Advertisement