File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 },
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
315315deno \
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
Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ export async function buildSingle(filename: string, options: BuildOptions) {
5858 */
5959const 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 )
You can’t perform that action at this time.
0 commit comments