From 820fc83c8bb3b6a8e7d0fde7734e561737c75e40 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 10 Oct 2022 16:38:04 +0200 Subject: [PATCH] Tweaks --- README.md | 7 ------- deno.jsonc | 3 +-- server/http_server.ts | 5 ----- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index 20d6a4d9..c6e05e27 100644 --- a/README.md +++ b/README.md @@ -96,13 +96,6 @@ component. Additional UI is built using React.js. back-end bundles. The server backend runs as a HTTP server on node.js using express. -After cloning the repo, run the following command to install some convenience -scripts (`silverbullet` and `plugos-bundle` into your `~/.deno/bin`): - -```shell -deno task install -``` - To prepare the initial web and plug build run: ```shell diff --git a/deno.jsonc b/deno.jsonc index e4bb3ae6..66f48af7 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -17,8 +17,7 @@ }, "tasks": { "test": "deno test -A --unstable", - "install": "deno install -f -A --unstable plugos/bin/plugos-bundle.ts && deno install -f -n silverbullet -A --unstable server/server.ts", - "build": "./build_plugs.sh && deno run -A --unstable --check build.ts", + "build": "deno install -f -A --unstable plugos/bin/plugos-bundle.ts && ./build_plugs.sh && deno run -A --unstable --check build.ts && deno install -f -n silverbullet -A --unstable server/server.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) diff --git a/server/http_server.ts b/server/http_server.ts index 79130bd9..e816ad16 100644 --- a/server/http_server.ts +++ b/server/http_server.ts @@ -143,11 +143,6 @@ export class HttpServer { "get-plug:file", async (plugPath: string): Promise => { const resolvedPath = path.resolve(plugPath); - if (!resolvedPath.startsWith(Deno.cwd())) { - throw new Error( - `Plugin path outside working directory, this is disallowed: ${resolvedPath}`, - ); - } try { const manifestJson = await Deno.readTextFile(resolvedPath); return JSON.parse(manifestJson);