File tree Expand file tree Collapse file tree 5 files changed +12
-18
lines changed Expand file tree Collapse file tree 5 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 1
1
#!/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 " ;
7
7
import {
8
8
getCommitAbbrevRef ,
9
9
getCommitSHA1 ,
@@ -53,7 +53,7 @@ export async function getURL(
53
53
}
54
54
55
55
export async function readAliasesFile ( ) : Promise < Record < string , string > > {
56
- const cdir = config_dir ( ) ;
56
+ const cdir = await dir ( "config" ) ;
57
57
if ( ! cdir ) {
58
58
return { } ;
59
59
}
Original file line number Diff line number Diff line change 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" ;
3
3
import { getHostingService , UnsupportedHostingServiceError } from "./mod.ts" ;
4
4
5
5
Deno . test ( "getHostingService" , async ( t ) => {
Original file line number Diff line number Diff line change 1
1
import type { HostingService , Range } from "../mod.ts" ;
2
2
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" ;
4
4
import { getCommitSHA1 } from "../../util.ts" ;
5
5
6
6
export const service : HostingService = {
Original file line number Diff line number Diff line change 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" ;
5
2
import { execute , ExecuteError } from "./process.ts" ;
6
3
7
4
Deno . test ( "execute() runs 'git' and return a stdout on success" , async ( ) => {
Original file line number Diff line number Diff line change 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" ;
6
3
import { _internals , ExecuteError } from "./process.ts" ;
7
4
import {
8
5
getCommitAbbrevRef ,
You can’t perform that action at this time.
0 commit comments