Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Nov 19, 2023
1 parent 7b23c6a commit c917013
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rad/tasks/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const task: Task = {
target: "public/index.html",
prereqs: ["assets/site/**/*.{html,md,ts,js}", "readme.md"],
onMake: async (
{ task: _, fs, logger, sh },
{ task: _, fs, logger },
{ getChangedPrereqFilenames, getPrereqFilenames },
) => {
const changed = await getChangedPrereqFilenames();
Expand Down
6 changes: 3 additions & 3 deletions assets/site/0005-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ will get executed by `rad` in a child process, a la
`bash -c 'echo "hello, world!"'` under the hood if you are using the `bash`
shell.

> ☝🏼Command tasks should tend to be _fast_. If the executed command is not fast,
> you may consider trying a function or make style task to speed things up, if
> feasible.
> ☝🏼Command tasks should tend to be _fast_. If the executed command is not
> fast, you may consider trying a function or make style task to speed things
> up, if feasible.
#### Function tasks

Expand Down
2 changes: 1 addition & 1 deletion src/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const makearooniToFuncarooni: (task: Makearooni) => Funcarooni = (
);
}
const targetChangedTime = await getModifiedTimeOrVeryOld(targetPath);
const preReqChangedTime = (Number(modified) || Number(created) || 0);
const preReqChangedTime = Number(modified) || Number(created) || 0;
const isPrereqChanged = preReqChangedTime >=
targetChangedTime;
if (isPrereqChanged) {
Expand Down
1 change: 1 addition & 0 deletions src/util/sh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export async function sh(
const { logger } = opts || {};
const shell = Deno.env.get("SHELL") || "sh";
logger?.debug([shell, "-c", cmd].join(" "));
// deno-lint-ignore no-deprecated-deno-api
const proc = Deno.run({
cmd: ["sh", "-c", cmd],
stdin: "inherit",
Expand Down

0 comments on commit c917013

Please sign in to comment.