Skip to content

Commit 8bf9e57

Browse files
committed
Revert "fix: skip import map for pipe loading"
This reverts commit 0c5fcc1.
1 parent 60ddc98 commit 8bf9e57

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

reactive_home/run.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,5 @@ fi
1616

1717
deno 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-
2719
echo "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

src/runtime/run.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { join, basename } from "@std/path";
22
import { parseArgs as parse } from "@std/cli";
33

44
const 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
);

0 commit comments

Comments
 (0)