From 02dd2f17c73a8c28be3409f92ea7f00ffefd5510 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 21 Oct 2022 20:20:58 +0200 Subject: [PATCH] No await for reload --- deno.jsonc | 24 +++++++++++++----------- plugs/core/plugmanager.ts | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index 4642c6a2..235022c0 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -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" } } diff --git a/plugs/core/plugmanager.ts b/plugs/core/plugmanager.ts index ef458b94..a7bce185 100644 --- a/plugs/core/plugmanager.ts +++ b/plugs/core/plugmanager.ts @@ -63,7 +63,7 @@ export async function updatePlugs() { await space.deleteAttachment(existingPlug); } } - await system.reloadPlugs(); + system.reloadPlugs(); } export async function getPlugHTTPS(url: string): Promise {