Skip to content

deno versions in mash outdated #32

@leowmjw

Description

@leowmjw

Needs updating to deno v2, libpkgx v0.21.0. Old versions referred by mash no longer served; error with "deno not found"

Diff for upgrade

--- a/script
+++ b/script
@@ -1,7 +1,7 @@
-#!/usr/bin/env -S pkgx --quiet deno~1.46 run --ext=ts --allow-read --unstable --allow-net --allow-ffi --allow-write --allow-env --allow-run
+#!/usr/bin/env -S pkgx --quiet deno~2 run --ext=ts --allow-read --allow-net --allow-ffi --allow-write --allow-env --allow-run

-import { hooks, Path, plumbing, semver, SemVer } from "https://deno.land/x/libpkgx@v0.18/mod.ts"
-import usePantry from "https://deno.land/x/libpkgx@v0.18/src/hooks/usePantry.ts";
+import { hooks, Path, plumbing, semver, SemVer } from "https://deno.land/x/libpkgx@v0.21.0/mod.ts"
+import usePantry from "https://deno.land/x/libpkgx@v0.21.0/src/hooks/usePantry.ts";
 const { useConfig, useInventory } = hooks
 const { install, link } = plumbing

Diff for prune

--- a/script
+++ b/script
@@ -1,7 +1,7 @@
-#!/usr/bin/env -S pkgx --quiet deno run --unstable -A --ext=ts
+#!/usr/bin/env -S pkgx --quiet deno run -A --ext=ts

 import { hooks, semver, SemVer, utils, plumbing, Installation } from "https://deno.land/x/libpkgx@v0.21.0/mod.ts"
-import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/mod.ts"
+import { Command } from "jsr:@cliffy/command@1.0.0"
 const { useConfig, useCellar } = hooks
 const { link } = plumbing


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions