Skip to content

Commit 1169db5

Browse files
authored
chore: create import map for dependencies (#668)
1 parent 38c0451 commit 1169db5

File tree

6 files changed

+65
-49
lines changed

6 files changed

+65
-49
lines changed

build_css.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import $ from "jsr:@david/dax@0.40.1";
2-
import browserslist from "npm:browserslist@4.23.0";
3-
import { browserslistToTargets, transform } from "npm:lightningcss";
1+
import $ from "@david/dax";
2+
import browserslist from "browserslist";
3+
import { browserslistToTargets, transform } from "lightningcss";
44

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

deno.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
"test:update": "UPDATE=1 cargo test --locked --all-targets && cargo insta test --accept"
99
},
1010
"workspace": ["js"],
11-
"exclude": [
12-
"target",
13-
"benches/fixtures"
14-
],
11+
"exclude": ["target", "benches/fixtures"],
1512
"fmt": {
16-
"exclude": [
17-
"**/*.gen.css",
18-
"generated_docs"
19-
]
13+
"exclude": ["**/*.gen.css", "generated_docs"]
2014
},
2115
"lint": {
22-
"exclude": [
23-
"src/html",
24-
"tests/testdata"
25-
]
16+
"exclude": ["src/html", "tests/testdata"]
17+
},
18+
"imports": {
19+
"@david/dax": "jsr:@david/dax@0.40.1",
20+
"@deno/cache-dir": "jsr:@deno/cache-dir@^0.14.0",
21+
"@deno/graph": "jsr:@deno/graph@^0.82.3",
22+
"@std/assert": "jsr:@std/assert@^0.223.0",
23+
"browserslist": "npm:browserslist@4.23.0",
24+
"lightningcss": "npm:lightningcss@^1.26.0",
25+
"tailwindcss": "npm:tailwindcss@3.4.3"
2626
}
2727
}

deno.lock

Lines changed: 45 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/allow_leak_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
22

3-
import { assertRejects } from "jsr:@std/assert@0.223";
3+
import { assertRejects } from "@std/assert";
44
import { doc } from "./mod.ts";
55

66
Deno.test({

js/mod.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

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

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

1111
const encoder = new TextEncoder();

tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Config } from "npm:tailwindcss@3.4.3";
1+
import { type Config } from "tailwindcss";
22

33
const TAG_PURPLE = "#7B61FF";
44
const TAG_CYAN = "#0CAFC6";

0 commit comments

Comments
 (0)