Skip to content

Commit 82619d6

Browse files
committed
Merge branch 'next'
2 parents 9f15c64 + 40355c7 commit 82619d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

assets/site/0005-manual.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ const site: Task = {
148148
* changedPrereqs, // AsyncIterable<WalkInfo>
149149
* getChangedPrereqFilenames, // Promise<string>
150150
*/
151-
},
151+
}
152152
) => {
153153
await fs.mkdirp("public");
154154
logger.info("collecting prereq filenames");
155155
const filenames = await getPrereqFilenames();
156156
const html = await Promise.all(
157157
filenames.map((filename) =>
158158
Deno.readTextFile(filename).then((markdown) => marked(markdown))
159-
),
159+
)
160160
).then((htmlSnippets) => htmlSnippets.join("\n"));
161161
await Deno.writeTextFile("./public/index.html", html);
162162
},
@@ -302,7 +302,7 @@ v8.
302302
```bash
303303
#!/bin/sh
304304
# generated by deno install
305-
exec deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-plugin --allow-hrtime --unstable 'https://raw.githubusercontent.com/cdaringe/rad/v6.9.0/src/bin.ts' "$@"
305+
exec deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-hrtime --unstable 'https://raw.githubusercontent.com/cdaringe/rad/v6.9.0/src/bin.ts' "$@"
306306
```
307307

308308
- extract the `deno run ...` command, drop the leading `exec` and trailing `$@`,
@@ -313,7 +313,7 @@ Example:
313313

314314
```bash
315315
deno \
316-
run --inspect-brk -A --allow-plugin --allow-hrtime --unstable \
316+
run --inspect-brk -A --allow-run --allow-hrtime --unstable \
317317
'https://raw.githubusercontent.com/cdaringe/rad/v6.9.0/src/bin.ts' \
318318
test
319319
# ^ add any args of interest

src/build-buds/deb/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export async function buildSingle(filename: string, options: BuildOptions) {
5858
*/
5959
const rewriteImports: ((options: BuildOptions) => ReWriteImports) = (options) =>
6060
async (code, _f) => {
61-
const importMap = options.rewriteImportMap
61+
const importMap: Deno.ImportMap["imports"] = options.rewriteImportMap
6262
? options.rewriteImportMap?.imports || {}
6363
: options.rewriteImportMapPath
6464
? await Deno.readTextFile(options.rewriteImportMapPath!).then((v) =>
65-
JSON.parse(v) as Deno.ImportMap
65+
(JSON.parse(v) as Deno.ImportMap).imports
6666
)
6767
: {};
6868
return Object.entries(importMap)

0 commit comments

Comments
 (0)