denoland / denoland/import_map

Publish to JSR

Open
#87 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
34
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Can this be published to JSR too?

Currently when releasing a package depending on this module to JSR, it shows error:

```sh
❯ deno publish
Checking for slow types in the public API...
error[invalid-external-import]: invalid import to a non-JSR 'https' specifier
--> /Users/divyansh/run/mod.ts:1:31
|
1 | import { parseFromJson } from 'https://deno.land/x/import_map@v0.21.0/mod.ts'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the specifier
|
= hint: replace this import with one from jsr or npm, or vendor the dependency into your package

info: the import was resolved to 'https://deno.land/x/import_map@v0.21.0/mod.ts'
info: this specifier is not allowed to be imported on jsr
info: jsr only supports importing `jsr:`, `npm:`, `data:`, `bun:`, and `node:` specifiers
docs: https://jsr.io/go/invalid-external-import

error: Found 1 problem
```

Also - https://github.com/jsr-io/jsr/discussions/674 🫣

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the package entry point and the mod.ts import shown in the report, then run deno publish to reproduce the invalid external import error. Investigate how the deno.land/x/import_map dependency can be made JSR-compatible; done means the package publishes to JSR without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, rust
Domain
release, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.