So I have structure of app like this
index.ts
package.json
package.json
worked
{
"scripts": {
"test": "deno run index.ts"
}
}
not working
{
"scripts": {
"test": "deno run index.ts"
}
}
I am not sure that whether or not deno will support execute script without extension name in the future.
package.json is part of Node.js stack, not Deno.import { x } from "./test.ts"; // works
import { x } from "./test"; // won't
I am not sure that whether or not
denowill support execute script without extension name in the future.
It won't, or it would already. Duplicate of #2506.
(off-topic: I think this should be in the list of FAQ)
should it be somewhere in documentation? I think many JS developers have the same concern.
@davidnguyen179 Technically is more directed towards Node users, JS users are aware of this
A common asked question section would be cool!
Most helpful comment
package.jsonis part of Node.js stack, not Deno.