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
Tag: yarnpkg
How to know the version of currently installed package from yarn.lock
I am writing an internal tool which compares the version installed in a project and only allow certain version to be passed. For that I have to check the version which is resolved in the yarn.lock file, as package.json file has a semver range, not specific version and it doesn’t tell you the dependency of the dependency anyway. I tried
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