Skip to content

Commit

Permalink
chore: create import map for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackAsLight committed Nov 26, 2024
1 parent 6969d7b commit 539efa2
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 18 deletions.
6 changes: 3 additions & 3 deletions build_css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from "jsr:@david/dax@0.40.1";
import browserslist from "npm:browserslist@4.23.0";
import { browserslistToTargets, transform } from "npm:lightningcss";
import $ from "@david/dax";
import browserslist from "browserslist";
import { browserslistToTargets, transform } from "lightningcss";

const browsers = browserslist(">= 0.5%, not dead");

Expand Down
9 changes: 9 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@
"src/html",
"tests/testdata"
]
},
"imports": {
"@david/dax": "jsr:@david/[email protected]",
"@deno/cache-dir": "jsr:@deno/cache-dir@^0.11.1",
"@deno/graph": "jsr:@deno/graph@^0.82.3",
"@std/assert": "jsr:@std/assert@^0.223.0",
"browserslist": "npm:[email protected]",
"lightningcss": "npm:lightningcss@^1.28.2",
"tailwindcss": "npm:[email protected]"
}
}
83 changes: 73 additions & 10 deletions deno.lock

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

2 changes: 1 addition & 1 deletion js/allow_leak_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { assertRejects } from "jsr:@std/assert@0.223";
import { assertRejects } from "@std/assert";
import { doc } from "./mod.ts";

Deno.test({
Expand Down
6 changes: 3 additions & 3 deletions js/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import { instantiate } from "./deno_doc_wasm.generated.js";
import type { DocNode, Location } from "./types.d.ts";
import { createCache } from "jsr:@deno/cache-dir@0.11";
import type { CacheSetting, LoadResponse } from "jsr:@deno/graph@0.82";
import { createCache } from "@deno/cache-dir";
import type { CacheSetting, LoadResponse } from "@deno/graph";

export type { CacheSetting, LoadResponse } from "jsr:@deno/graph@0.82";
export type { CacheSetting, LoadResponse } from "@deno/graph";
export * from "./types.d.ts";

const encoder = new TextEncoder();
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Config } from "npm:tailwindcss@3.4.3";
import { type Config } from "tailwindcss";

const TAG_PURPLE = "#7B61FF";
const TAG_CYAN = "#0CAFC6";
Expand Down

0 comments on commit 539efa2

Please sign in to comment.