File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 " ;
77import {
88 getCommitAbbrevRef ,
99 getCommitSHA1 ,
@@ -53,7 +53,7 @@ export async function getURL(
5353}
5454
5555export async function readAliasesFile ( ) : Promise < Record < string , string > > {
56- const cdir = config_dir ( ) ;
56+ const cdir = await dir ( "config" ) ;
5757 if ( ! cdir ) {
5858 return { } ;
5959 }
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" ;
33import { getHostingService , UnsupportedHostingServiceError } from "./mod.ts" ;
44
55Deno . test ( "getHostingService" , async ( t ) => {
Original file line number Diff line number Diff line change 11import type { HostingService , Range } from "../mod.ts" ;
22import 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" ;
44import { getCommitSHA1 } from "../../util.ts" ;
55
66export 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" ;
52import { execute , ExecuteError } from "./process.ts" ;
63
74Deno . 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" ;
63import { _internals , ExecuteError } from "./process.ts" ;
74import {
85 getCommitAbbrevRef ,
You can’t perform that action at this time.
0 commit comments