Skip to content

Commit 6c97c32

Browse files
authored
Merge pull request #18 from lambdalisue/fix-jsr
🐛 Avoid using `https://` imports
2 parents e23aa3c + a461ef5 commit 6c97c32

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

bin/browse.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env -S deno run --allow-run --allow-read --allow-env
2-
import { parse } from "https://deno.land/std@0.194.0/flags/mod.ts";
3-
import { join } from "https://deno.land/std@0.194.0/path/mod.ts";
4-
import { ensure, is } from "https://deno.land/x/unknownutil@v3.2.0/mod.ts";
5-
import { systemopen } from "https://deno.land/x/systemopen@v0.2.0/mod.ts";
6-
import config_dir from "https://deno.land/x/dir@1.5.1/config_dir/mod.ts";
2+
import { parse } from "jsr:@std/flags";
3+
import { join } from "jsr:@std/path";
4+
import { ensure, is } from "jsr:@core/unknownutil";
5+
import { systemopen } from "jsr:@lambdalisue/systemopen";
6+
import { dir } from "jsr:@cross/dir";
77
import {
88
getCommitAbbrevRef,
99
getCommitSHA1,
@@ -53,7 +53,7 @@ export async function getURL(
5353
}
5454

5555
export async function readAliasesFile(): Promise<Record<string, string>> {
56-
const cdir = config_dir();
56+
const cdir = await dir("config");
5757
if (!cdir) {
5858
return {};
5959
}

hosting_service/mod_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertThrows } from "https://deno.land/std@0.202.0/assert/mod.ts";
2-
import { assertSnapshot } from "https://deno.land/std@0.202.0/testing/snapshot.ts";
1+
import { assertThrows } from "jsr:@std/assert";
2+
import { assertSnapshot } from "jsr:@std/testing/snapshot";
33
import { getHostingService, UnsupportedHostingServiceError } from "./mod.ts";
44

55
Deno.test("getHostingService", async (t) => {

hosting_service/services/bitbucket_org.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { HostingService, Range } from "../mod.ts";
22
import type { ExecuteOptions } from "../../process.ts";
3-
import { extname } from "https://deno.land/std@0.202.0/path/mod.ts";
3+
import { extname } from "jsr:@std/path";
44
import { getCommitSHA1 } from "../../util.ts";
55

66
export const service: HostingService = {

process_test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
assert,
3-
assertRejects,
4-
} from "https://deno.land/std@0.194.0/testing/asserts.ts";
1+
import { assert, assertRejects } from "jsr:@std/assert";
52
import { execute, ExecuteError } from "./process.ts";
63

74
Deno.test("execute() runs 'git' and return a stdout on success", async () => {

util_test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { stub } from "https://deno.land/std@0.202.0/testing/mock.ts";
2-
import {
3-
assertEquals,
4-
unreachable,
5-
} from "https://deno.land/std@0.202.0/assert/mod.ts";
1+
import { stub } from "jsr:@std/testing/mock";
2+
import { assertEquals, unreachable } from "jsr:@std/assert";
63
import { _internals, ExecuteError } from "./process.ts";
74
import {
85
getCommitAbbrevRef,

0 commit comments

Comments
 (0)