You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you include the root --include . then the compiled executable fails with syntax errors.
Steps to reproduce
Create a simple TS program
// example.ts// This is a TypeScript function and its parameter has a typefunctiontsFunction(param: any){console.log(param);}tsFunction("Hello, World!");
compile with the root included: deno compile -A --include . example.ts
Version: Deno 2.1.x
If you include the root
--include .
then the compiled executable fails with syntax errors.Steps to reproduce
deno compile -A --include . example.ts
Run the resulting binary:
It seems that the runtime tries to execute the TS file as if it were a transpiled JS file, probably because it's included at the root.
The text was updated successfully, but these errors were encountered: