Skip to content

Commit b8be1be

Browse files
committed
chore: upgrade deps, formatting
BREAKING CHANGE: upgrade to latest deno std libs & new url scheme
1 parent 947c0a6 commit b8be1be

File tree

14 files changed

+34
-28
lines changed

14 files changed

+34
-28
lines changed

assets/rad.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import type {
2-
Task,
3-
Tasks,
4-
} from "https://deno.land/x/rad/src/mod.ts";
1+
import type { Task, Tasks } from "https://deno.land/x/rad/src/mod.ts";
52

63
const meet: Task = `echo "hi friend."`;
74

assets/site/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/// <reference lib="dom" />
2-
import {
3-
Transform,
4-
RadSvgTransform,
5-
} from "./common.ts";
2+
import { RadSvgTransform, Transform } from "./common.ts";
63
import { chaos } from "./transforms/chaos.ts";
74
import { order } from "./transforms/order.ts";
85

rad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const test: Task = {
1010
logger.info(`:: unit tests`);
1111
await sh(`deno test --unstable -A --coverage`);
1212
if (Deno.env.get("RAD_SKIP_INTEGRATION_TESTS")) return;
13-
logger.info(`:: cli integration tests`);
13+
logger.info(`:: cli integration tests in docker`);
1414
await sh(
1515
`docker run --name rad-integration --rm -v $PWD:/radness --entrypoint /radness/test/integration/rad.cli.init.sh --workdir /radness hayd/deno:alpine-${DENO_VERSION}`,
1616
);

src/3p/std.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import * as mod from "https://deno.land/std@v0.68.0/testing/asserts.ts";
2-
export * from "https://deno.land/std@v0.68.0/testing/asserts.ts";
1+
import * as mod from "https://deno.land/std@0.79.0/testing/asserts.ts";
2+
export * from "https://deno.land/std@0.79.0/testing/asserts.ts";
33
export const assert = (expr: any, msg?: string) => mod.assert(expr, msg);

src/3p/std.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * as colors from "https://deno.land/std@v0.68.0/fmt/colors.ts";
2-
export * as flags from "https://deno.land/std@v0.68.0/flags/mod.ts";
3-
export * as fs from "https://deno.land/std@v0.68.0/fs/mod.ts";
4-
export * as log from "https://deno.land/std@v0.68.0/log/mod.ts";
5-
export * as logger from "https://deno.land/std@v0.68.0/log/logger.ts";
6-
export * as logLevels from "https://deno.land/std@v0.68.0/log/levels.ts";
7-
export * as path from "https://deno.land/std@v0.68.0/path/mod.ts";
1+
export * as colors from "https://deno.land/std@0.79.0/fmt/colors.ts";
2+
export * as flags from "https://deno.land/std@0.79.0/flags/mod.ts";
3+
export * as fs from "https://deno.land/std@0.79.0/fs/mod.ts";
4+
export * as log from "https://deno.land/std@0.79.0/log/mod.ts";
5+
export * as logger from "https://deno.land/std@0.79.0/log/logger.ts";
6+
export * as logLevels from "https://deno.land/std@0.79.0/log/levels.ts";
7+
export * as path from "https://deno.land/std@0.79.0/path/mod.ts";

src/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { timer } from "./util/timer.ts";
1616
import { glob } from "./util/glob.ts";
1717
import * as iter from "./util/iterable.ts";
1818
import type { Logger, WithLogger } from "./logger.ts";
19-
import { path, fs, colors } from "./3p/std.ts";
19+
import { colors, fs, path } from "./3p/std.ts";
2020
import { getReRoot } from "./util/reroot.ts";
2121

2222
type WalkEntry = fs.WalkEntry;

src/TaskGraph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
RadTask,
2+
asFuncarooni,
33
execute,
44
getPartialFromUserTask,
5+
RadTask,
56
Task,
6-
asFuncarooni,
77
} from "./Task.ts";
88
import * as errors from "./errors.ts";
99
import type { Radness } from "./Radness.ts";

src/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as errors from "./errors.ts";
22
import * as taskGraph from "./TaskGraph.ts";
33
import type { Logger, WithLogger } from "./logger.ts";
44
import type { Task } from "./Task.ts";
5-
import { Radness, from } from "./Radness.ts";
5+
import { from, Radness } from "./Radness.ts";
66
import { path } from "./3p/std.ts";
77
import { asFileUrl } from "./util/fs.ts";
88

@@ -117,4 +117,4 @@ export function createTaskGraph(radness: Radness, { logger }: WithLogger) {
117117
}
118118

119119
export type Tasks = Radness["tasks"];
120-
export type { Task, Radness };
120+
export type { Radness, Task };

src/util/glob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { path, fs } from "../3p/std.ts";
1+
import { fs, path } from "../3p/std.ts";
22
import type { WithLogger } from "../logger.ts";
33

44
type CreatePathMatcherOpts = { root: string; pattern: string };

src/util/sh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ export async function sh(
2121
`non-zero exit code: ${code}`,
2222
);
2323
}
24+
proc.close();
2425
}

0 commit comments

Comments
 (0)