Closed
Description
Issue Type
- Bug Report
- Feature Request
- Other
Expected
Works CAC with Deno.
Actual
Deno throws error.
error: Uncaught ImportPrefixMissing: relative import path "events" not prefixed with / or ./ or ../ Imported from "https://unpkg.com/cac@6.5.3/mod.js"
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:91:10)
Possible Solutions
Deno does not have 'events' module but cac depends.
Also Deno cannnot import https://www.npmjs.com/package/events with such code.
Line 1 in cb367c9
Info
- CAC version: 6.5.3
- Reproduction code:
import { cac } from 'https://unpkg.com/cac/mod.js'