We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: Deno 2.0.3
main.ts
import { program } from "npm:commander@^12.1.0"; program.version(Deno.env.get("VERSION") ?? "0.0.1"); program.parse(Deno.args);
deno.json
{ "imports": { "commander": "npm:commander@12.1.0" } }
The text was updated successfully, but these errors were encountered:
I'm new to Deno and made some modifications after digging into the documentation.
package.json
{ "dependencies": {} }
npm i commander
imports
"nodeModulesDir": "auto"
"npm:"
deno compile --node-modules-dir -A main.ts
So far, no errors have been found, but I'm not sure if this follows best practices.
Sorry, something went wrong.
No branches or pull requests
Version: Deno 2.0.3
main.ts
deno.json
The text was updated successfully, but these errors were encountered: