denoland / deno_registry2

The backend for the deno.land/x service
https://deno.land/x
MIT License
92 stars 14 forks source link

Support .d.mts files #344

Open dsherret opened 8 months ago

dsherret commented 8 months ago

The content type returned right now is "content-type": "model/vnd.mts", which causes the deno cli to not load these files.

johnspurlock commented 1 month ago

Can you fix this in Deno 2?

Getting

error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
  Specifier: https://deno.land/std@0.224.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.d.mts
    at https://deno.land/std@0.224.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.mjs:5:22

on deno v2.0.2, code works fine on 1.46.3