File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1616
1717deno run --lock=/deno.lock --allow-read=/config/reactive-home/import_map.json,/config.yaml --allow-write=/config/reactive-home/import_map.json /update-import-map.ts
1818
19-
20- PKG_VERSION_SCRIPT="
21- import file from '/config/reactive-home/import_map.json' with { type: 'json' };
22- console.log(file.imports['reactive-home'])
23- "
24-
25- PKG_VERSION=$( echo " $PKG_VERSION_SCRIPT " | deno run -)
26-
2719echo " Load runtime..."
28- echo " import '$PKG_VERSION /runtime'" | deno run --import-map=/config/reactive-home/import_map.json --allow-env --allow-net --allow-run --allow-sys --allow-read - --root /config/reactive-home --pkg " $PKG_VERSION "
20+ echo " import 'reactive-home /runtime'" | deno run --import-map=/config/reactive-home/import_map.json --allow-env --allow-net --allow-run --allow-sys --allow-read - --root /config/reactive-home
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { join, basename } from "@std/path";
22import { parseArgs as parse } from "@std/cli" ;
33
44const flags = parse ( Deno . args , {
5- string : [ "root" , "pkg" ] ,
5+ string : [ "root" ] ,
66 boolean : [ "local-test" ] ,
77} ) ;
88
@@ -45,9 +45,7 @@ async function executeScripts(abort: AbortSignal) {
4545 await writer . write (
4646 new TextEncoder ( ) . encode (
4747 `import "${
48- flags [ "local-test" ]
49- ? "./src/runtime/loader.ts"
50- : `${ flags . pkg ?? "reactive-home" } /loader`
48+ flags [ "local-test" ] ? "./src/runtime/loader.ts" : "reactive-home/loader"
5149 } ";`
5250 )
5351 ) ;
You can’t perform that action at this time.
0 commit comments