We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a1f44d + 1bdcb3a commit 173fe6cCopy full SHA for 173fe6c
pkgm.ts
@@ -518,8 +518,8 @@ function get_pkgx() {
518
if (existsSync(pkgx)) {
519
const out = new Deno.Command(pkgx, { args: ["--version"] }).outputSync();
520
const stdout = new TextDecoder().decode(out.stdout);
521
- const match = stdout.match(/^pkgx (\d+.\d+)/);
522
- if (!match || parseFloat(match[1]) < 2.4) {
+ const match = stdout.match(/^pkgx (\d+\.\d+\.\d+)/);
+ if (!match || new SemVer(match[1]).lt(new SemVer("2.4.0"))) {
523
Deno.exit(1);
524
}
525
return pkgx;
0 commit comments