compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Deno without NPM

Open taras opened this issue 3 years ago • 5 comments

What version of @astrojs/compiler are you using?

0.12

What package manager are you using?

deno

What operating system are you using?

mac m1

Describe the Bug

We’d like to use Astro with Deno without using NPM. We noticed that the Deno package is 20 minor releases behind. Is it possible to start publishing to Denoland again so we don’t have to use npm in Deno?

Link to Minimal Reproducible Example

https://deno.land/x/astro_compiler@%40astrojs%2Fcompiler%400.12.1

taras avatar Dec 12 '22 03:12 taras

Looks like Deno support was dropped awhile back with #534

cowboyd avatar Dec 12 '22 04:12 cowboyd

I should also say, anything we can do to resurrect it?

cowboyd avatar Dec 12 '22 15:12 cowboyd

I should also say, anything we can do to resurrect it?

Since Deno uses the Git repo as the source of truth, we had to keep our generated .wasm file in sync and it often led to merge conflicts! If there are better ways to automate this, I'd love to see Deno support come back.

natemoo-re avatar Dec 12 '22 22:12 natemoo-re

@natemoo-re Have you considered building and uploading the .wasm file as a GitHub release artifact? That way, the Deno-based CLI can download and cache it from a secure and well-known place that corresponds to a precise version.

For development, we could have a CLI option to point to a file url of the locally built .wasm

cowboyd avatar Dec 13 '22 15:12 cowboyd

@cowboyd that would be great! Not sure I have much time to work on this right now, but I would really love if our Deno package could come back.

Happy to review any PRs if you're interested in helping make this happen. 😊

natemoo-re avatar Jan 11 '23 22:01 natemoo-re