Skip to content

Commit

Permalink
use new syntax for imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Oct 2, 2024
1 parent 64286aa commit 3339559
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tools/reference.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import { basename, dirname, join } from "https://deno.land/std/path/mod.ts";
import { expandGlobSync } from "https://deno.land/std/fs/expand_glob.ts";
import { parse } from "https://deno.land/std/yaml/mod.ts";
import { distinct } from "https://deno.land/std/collections/distinct.ts"
import { basename, dirname, join } from "stdlib/path";
import { expandGlobSync } from "stdlib/fs";
import { parse } from "stdlib/yaml";
import { distinct } from "stdlib/collections";


export function asArray<T>(x?: T | Array<T>): Array<T> {
Expand Down
4 changes: 2 additions & 2 deletions tools/snapshot-typst.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from "https://deno.land/std/path/mod.ts";
import {existsSync} from "https://deno.land/std/fs/mod.ts";
import * as path from "stdlib/path";
import {existsSync} from "stdlib/fs";

function getModuleDir(importMeta: ImportMeta): string {
return path.resolve(path.dirname(path.fromFileUrl(importMeta.url)));
Expand Down

0 comments on commit 3339559

Please sign in to comment.