Skip to content

Commit

Permalink
chore: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed May 20, 2024
1 parent 78aa588 commit 1c083e7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
11 changes: 5 additions & 6 deletions .github/deno_config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// Imports
import { expandGlob } from "jsr:@std/fs"
import { basename, dirname, fromFileUrl } from "jsr:@std/path"
import { resolve } from "jsr:@std/path/resolve"
import * as JSONC from "jsr:@std/jsonc"
import type { record } from "jsr:@libs/typing"
import { expandGlob } from "@std/fs"
import { basename, dirname, fromFileUrl, resolve } from "jsr:@std/path"
import * as JSONC from "@std/jsonc"
import type { record } from "@libs/typing"

// Load global configuration
const root = fromFileUrl(import.meta.resolve("../"))
const global = JSONC.parse(await Deno.readTextFile(resolve(root, "deno.jsonc"))) as Record<string, unknown>
const imports = {}
const imports = { "@std/jsonc": "jsr:@std/[email protected]" }

// Load local configurations
const packages = []
Expand Down
8 changes: 4 additions & 4 deletions .github/deno_readme.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Imports
import { expandGlob } from "jsr:@std/fs"
import { basename, dirname, fromFileUrl, resolve } from "jsr:@std/path"
import * as JSONC from "jsr:@std/jsonc"
import { DOMParser } from "https://deno.land/x/[email protected]/deno-dom-wasm.ts"
import { expandGlob } from "@std/fs"
import { basename, dirname, fromFileUrl, resolve } from "@std/path"
import * as JSONC from "@std/jsonc"
import { DOMParser } from "@lowlighter/deno-dom/deno-dom-wasm"
import { Logger } from "@libs/logger"

// Load local configurations
Expand Down
7 changes: 3 additions & 4 deletions .github/deno_tag.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Imports
import { fromFileUrl } from "jsr:@std/path/from-file-url"
import { resolve } from "jsr:@std/path/resolve"
import * as JSONC from "jsr:@std/jsonc"
import { fromFileUrl, resolve } from "@std/path"
import * as JSONC from "@std/jsonc"
import { parseArgs } from "@std/cli"
import type { record } from "jsr:@libs/typing"
import type { record } from "@libs/typing"
import * as semver from "@std/semver"
import { assert } from "@std/assert"

Expand Down
2 changes: 2 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
]
},
"imports": {
"@std/jsonc": "jsr:@std/[email protected]",
"@std/fs": "jsr:@std/[email protected]",
"@std/assert": "jsr:@std/[email protected]",
"@std/semver": "jsr:@std/[email protected]",
Expand All @@ -82,6 +83,7 @@
"@cliffy/table": "jsr:@cliffy/[email protected]",
"@mdn/browser-compat-data": "npm:@mdn/browser-compat-data@5",
"@deno/emit": "jsr:@deno/[email protected]",
"@lowlighter/deno-dom/deno-dom-wasm": "jsr:@lowlighter/[email protected]/deno-dom-wasm",
"terser": "npm:terser@5",
"browserslist": "npm:browserslist@4",
"css-tree": "npm:css-tree@2",
Expand Down
5 changes: 5 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c083e7

Please sign in to comment.