Skip to main content
Module

x/ndeno/mod.ts

js runtime project management tool / js runtime 项目管理工具
Go to Latest
File
import { install } from "./src/pm.ts"import { isDenoProject } from "./src/fs.ts"import { detectPackageManager } from "./src/pm.ts"
async function runMain() { const { args } = Deno
if (await isDenoProject()) { const { denoAction } = await import("./src/cli.ts") await denoAction() Deno.exit(0) }
const pm = await detectPackageManager()
if (args.length === 0) { await install(pm) Deno.exit(0) }
const { action } = await import("./src/cli.ts")
await action(pm)}
if (import.meta.main) { runMain()}