Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@-scoped imports broken in 1.0.0-rc5+ #763

Closed
djradon opened this issue Nov 2, 2024 · 1 comment
Closed

@-scoped imports broken in 1.0.0-rc5+ #763

djradon opened this issue Nov 2, 2024 · 1 comment

Comments

@djradon
Copy link

djradon commented Nov 2, 2024

error: Relative import path "@cliffy/internal/runtime/get-env" not prefixed with / or ./ or ../
at https://deno.land/x/cliffy@v1.0.0-rc.7/command/command.ts:43:24

I've tried this on WSL and ubuntu 24.04 using some demo code from the Cliffy docs:

`
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.7/command/mod.ts";

await new Command()
// Main command.
.name("cliffy")
.version("0.1.0")
.description("Command line framework for Deno")
.globalOption("-d, --debug", "Enable debug output.")
.action((options, ...args) => console.log("Main command called."))
// Child command 1.
.command("foo", "Foo sub-command.")
.option("-f, --foo", "Foo option.")
.arguments("value:string")
.action((options, ...args) => console.log("Foo command called."))
// Child command 2.
.command("bar", "Bar sub-command.")
.option("-b, --bar", "Bar option.")
.arguments("input:string [output:string]")
.action((options, ...args) => console.log("Bar command called."))
.parse(Deno.args);
`

It works in rc4. in rc5 the error is "error: Module not found "https://deno.land/x/cliffy@v1.0.0-rc.5/command/mod.ts".

@djradon djradon changed the title @-scoped imports broken in 1.0.0-rc* @-scoped imports broken in 1.0.0-rc5+ Nov 3, 2024
@c4spar
Copy link
Owner

c4spar commented Nov 5, 2024

cliffy is now published on jsr since rc.5. but i forgot to remove the webhook and published rc.6 and rc.7 again on deno.land.

So, for versions <= rc.4 use deno.land and for versions >= rc.5 use jsr.

@c4spar c4spar closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants