Skip to content

Commit 36c2d1e

Browse files
committed
chore: various improvements
1. Return to @deno/emit (simpler for current needs than esbuild) 2. Drop importMap.json in favor of deno.json#/imports 3. Use JSR where applicable 4. Define @lib alias for easier common lib imports 5. Define deno.json/#tasks
1 parent 193cbe0 commit 36c2d1e

File tree

334 files changed

+546
-561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+546
-561
lines changed

2015/day/1/part/1/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import solve from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("(())", expect(0));
66
Deno.test("()()", expect(0));

2015/day/1/part/2/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import solve from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test(")", expect(1));
66
Deno.test("()())", expect(5));

2015/day/10/part/1/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { lookAndSay } from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("lookAndSay", async (t) => {
66
await t.step("1", expect("11"));

2015/day/10/part/2/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { lookAndSay } from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("lookAndSay", async (t) => {
66
await t.step("1", expect("11"));

2015/day/11/part/1/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import solve, { isValidPassword } from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("isValidPassword", async (t) => {
66
await t.step("hijklmmn", expect(false));

2015/day/11/part/2/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { isValidPassword } from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("isValidPassword", async (t) => {
66
await t.step("hijklmmn", expect(false));

2015/day/12/part/1/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import solve from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("[1,2,3]", expect(6));
66
Deno.test('{"a":2,"b":4}', expect(6));

2015/day/12/part/2/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import solve from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("[1,2,3]", expect(6));
66
Deno.test('[1,{"c":"red","b":2},3]', expect(4));

2015/day/13/part/1/solve.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import solve from "./solve.ts";
22

3-
import { assertEquals } from "../../../../../lib/testing/asserts.ts";
3+
import { assertEquals } from "@std/assert";
44

55
Deno.test("example", () => {
66
const input = `\

2015/day/13/part/1/solve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import permute from "../../../../../lib/permute.ts";
1+
import permute from "@lib/permute.ts";
22

33
export default function solve(input: string) {
44
const graph = parsePotentialHappinessGraph(input);

0 commit comments

Comments
 (0)