diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-02-10 00:55:18 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-09 10:55:18 -0500 |
commit | 1502051453bf16787a59f43004b24d553d39bd26 (patch) | |
tree | c352121e234d6ef53200013d29e38dcd7dae340d | |
parent | 65cafd2edffced763424e407eaf275f08f6da3b0 (diff) |
Add read permission for format.ts (#1726)
-rw-r--r-- | .github/CONTRIBUTING.md | 2 | ||||
-rw-r--r-- | Docs.md | 2 | ||||
-rwxr-xr-x | tools/format.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 8538a7897..0fdba492c 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -19,7 +19,7 @@ Before submitting, please make sure the following is done: 1. There are tests that cover the changes. 2. Ensure `./tools/test.py` passes. -3. Format your code with `deno ./tools/format.ts --allow-run`. +3. Format your code with `deno ./tools/format.ts --allow-read --allow-run`. 4. Make sure `./tools/lint.py` passes. ## Changes to `third_party` @@ -116,7 +116,7 @@ Extra steps for Windows users: ./tools/test.py # Format code. - deno ./tools/format.ts + deno ./tools/format.ts --allow-read --allow-run Other useful commands: diff --git a/tools/format.ts b/tools/format.ts index e5e0b4bf6..d6cfc8ec4 100755 --- a/tools/format.ts +++ b/tools/format.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-run +#!/usr/bin/env deno --allow-read --allow-run // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as deno from "deno"; import { join } from "../js/deps/https/deno.land/x/std/fs/path.ts"; |