jsr-io / jsr-npm

A cli tool to make installing packages form jsr.io in node easy
https://npmjs.com/package/jsr
MIT License
100 stars 12 forks source link

Error publishing package using node:readline/promises #91

Closed henrikvilhelmberglund closed 3 months ago

henrikvilhelmberglund commented 3 months ago

No idea if this is where I should post the issue. I get an error when trying to publish my simple package to JSR:

$ npx jsr publish
Need to install the following packages:
jsr@0.12.4
Ok to proceed? (y) y

Downloading JSR binary...
[00:01] [#################################################>] 37.4 MiB/37.5 MiB
error: Unknown built-in "node:" module: readline/promises
    at file:///C:/Github/my-libraries/hvb-screenshots/dist/dist.js:9:22
Child process exited with: 1

Am I missing something?

Repro: https://github.com/henrikvilhelmberglund/hvb-screenshots

bartlomieju commented 3 months ago

It's actually a bug in Deno, I opened https://github.com/denoland/deno/pull/24336 to fix this problem.

henrikvilhelmberglund commented 3 months ago

It's actually a bug in Deno, I opened denoland/deno#24336 to fix this problem.

Thanks!

bartlomieju commented 3 months ago

@marvinhagemeister is the jsr-npm using canary version of Deno?

marvinhagemeister commented 3 months ago

yes