Skip to content

Commit 2a2f5fe

Browse files
authored
chore: explicitly list dependencies (#2)
This fixes new lint warnings enabled by default in 2.5 or 2.6
1 parent d37113f commit 2a2f5fe

File tree

12 files changed

+78
-48
lines changed

12 files changed

+78
-48
lines changed

bench/convert_maps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* The given version must be a released version on JSR.
1111
*/
1212

13-
import { expandGlob } from "jsr:@std/fs";
14-
import { parseArgs } from "jsr:@std/cli/parse-args";
13+
import { expandGlob } from "@std/fs";
14+
import { parseArgs } from "@std/cli/parse-args";
1515
import { encode } from "../src/mod.ts";
1616

1717
if (import.meta.main) {

bench/decode.bench.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import { expandGlob } from "jsr:@std/fs";
6-
import { format } from "jsr:@std/fmt/bytes";
5+
import { expandGlob } from "@std/fs";
6+
import { format } from "@std/fmt/bytes";
77

88
import { decode, DecodeMode } from "../src/mod.ts";
99

bench/encode.bench.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import { expandGlob } from "jsr:@std/fs";
6-
import { format } from "jsr:@std/fmt/bytes";
5+
import { expandGlob } from "@std/fs";
6+
import { format } from "@std/fmt/bytes";
77

88
import { decode, encode } from "../src/mod.ts";
99

deno.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,12 @@
1717
"bench",
1818
"src/**/*.test.ts"
1919
]
20+
},
21+
"imports": {
22+
"@std/assert": "jsr:@std/assert@^1.0.17",
23+
"@std/cli": "jsr:@std/cli@^1.0.26",
24+
"@std/fmt": "jsr:@std/fmt@^1.0.9",
25+
"@std/fs": "jsr:@std/fs@^1.0.22",
26+
"@std/testing": "jsr:@std/testing@^1.0.17"
2027
}
2128
}

deno.lock

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

src/builder/builder.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
5+
import { beforeEach, describe, it } from "@std/testing/bdd";
66
import { ScopeInfoBuilder } from "./builder.ts";
77
import {
88
assertEquals,
99
assertNotStrictEquals,
1010
assertStrictEquals,
11-
} from "jsr:@std/assert";
11+
} from "@std/assert";
1212

1313
describe("ScopeInfoBuilder", () => {
1414
let builder: ScopeInfoBuilder;

src/builder/safe_builder.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
5+
import { beforeEach, describe, it } from "@std/testing/bdd";
66
import { SafeScopeInfoBuilder } from "./safe_builder.ts";
7-
import { assertThrows } from "jsr:@std/assert";
7+
import { assertThrows } from "@std/assert";
88

99
describe("SafeScopeInfoBuilder", () => {
1010
let builder: SafeScopeInfoBuilder;

src/decode/decode.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import { describe, it } from "jsr:@std/testing/bdd";
5+
import { describe, it } from "@std/testing/bdd";
66
import { ScopeInfoBuilder } from "../builder/builder.ts";
77
import { encode } from "../encode/encode.ts";
88
import {
99
assertEquals,
1010
assertExists,
1111
assertStrictEquals,
1212
assertThrows,
13-
} from "jsr:@std/assert";
13+
} from "@std/assert";
1414
import { encodeSigned, encodeUnsigned } from "../vlq.ts";
1515
import { decode, DecodeMode } from "./decode.ts";
1616
import type { IndexSourceMapJson, SourceMapJson } from "../scopes.ts";

src/encode/encode.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
5+
import { beforeEach, describe, it } from "@std/testing/bdd";
66
import type { ScopeInfo, SourceMapJson } from "../scopes.ts";
7-
import { assertStrictEquals, assertThrows } from "jsr:@std/assert";
7+
import { assertStrictEquals, assertThrows } from "@std/assert";
88
import { encode } from "./encode.ts";
99
import { ScopeInfoBuilder } from "../builder/builder.ts";
1010

src/roundtrip.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
* check that the same `ScopesInfo` falls out.
88
*/
99

10-
import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
10+
import { beforeEach, describe, it } from "@std/testing/bdd";
1111
import type { ScopeInfo } from "./scopes.ts";
1212
import { encode } from "./encode/encode.ts";
1313
import { decode } from "./decode/decode.ts";
14-
import { assertEquals } from "jsr:@std/assert";
14+
import { assertEquals } from "@std/assert";
1515
import { ScopeInfoBuilder } from "./builder/builder.ts";
1616

1717
function assertCodec(scopesInfo: ScopeInfo): void {

0 commit comments

Comments
 (0)