No await for reload

pull/109/head
Zef Hemel 2022-10-21 20:20:58 +02:00
parent 6bcf3d7522
commit 02dd2f17c7
2 changed files with 14 additions and 12 deletions

View File

@ -1,4 +1,17 @@
{
"tasks": {
"clean": "rm -rf dist dist_bundle",
"install": "deno install -f -A --unstable plugos/bin/plugos-bundle.ts && deno install -f -n silverbullet -A --unstable server/server.ts",
"test": "deno test -A --unstable",
"build": "./build_plugs.sh && deno run -A --unstable --check build.ts",
"watch-web": "deno run -A --unstable --check build.ts --watch",
"watch-server": "deno run -A --unstable --check --watch server/server.ts",
// The only reason to run a shell script is that deno task doesn't support globs yet (e.g. *.plug.yaml)
"watch-plugs": "./build_plugs.sh --watch",
"bundle": "deno bundle --importmap import_map.json server/server.ts dist/silverbullet.js",
"generate": "deno run -A plugos/gen.ts"
},
"compilerOptions": {
"lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"],
"jsx": "react-jsx",
@ -32,16 +45,5 @@
"plugos/environments/worker_bundle.json"
]
}
},
"tasks": {
"install": "deno install -f -A --unstable plugos/bin/plugos-bundle.ts && deno install -f -n silverbullet -A --unstable server/server.ts",
"test": "deno test -A --unstable",
"build": "./build_plugs.sh && deno run -A --unstable --check build.ts",
"watch-web": "deno run -A --unstable --check build.ts --watch",
"watch-server": "deno run -A --unstable --check --watch server/server.ts",
// The only reason to run a shell script is that deno task doesn't support globs yet (e.g. *.plug.yaml)
"watch-plugs": "./build_plugs.sh --watch",
"bundle": "deno bundle --importmap import_map.json server/server.ts dist/silverbullet.js",
"generate": "deno run -A plugos/gen.ts"
}
}

View File

@ -63,7 +63,7 @@ export async function updatePlugs() {
await space.deleteAttachment(existingPlug);
}
}
await system.reloadPlugs();
system.reloadPlugs();
}
export async function getPlugHTTPS(url: string): Promise<Manifest> {