NfNitLoop / deno-embedder

Dev tools for embedding files into Deno applications
40 stars 4 forks source link

JSR Imports Break `deno check` #11

Closed NfNitLoop closed 4 months ago

NfNitLoop commented 4 months ago

deno-embedder creates files that depend on embed.ts, relative to the place that deno-embedder was imported, using import.meta. But it looks like import.meta exposes JSR imports as HTTP imports, which breaks deno check, which gives an error like this:

> deno task check
Task check deno check src/main.ts
error: Failed resolving types. Importing JSR packages via HTTPS specifiers for type checking is not supported for performance reasons. If you would like types, import via a `jsr:` specifier instead or else use a non-statically analyzable dynamic import.
  Importing: https://jsr.io/@nfnitloop/deno-embedder/1.3.0/embed.ts
    at file:///[...]/src/generated/static/dir.ts:1:17