mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: use granular unstable flags in tools/ (#22138)
This commit is contained in:
parent
84fb2ad71b
commit
d889f99657
8 changed files with 13 additions and 11 deletions
|
@ -10,7 +10,7 @@ prerequisite to run this before code check in.
|
|||
To run formatting:
|
||||
|
||||
```sh
|
||||
deno run --allow-read --allow-write --allow-run --unstable ./tools/format.js
|
||||
deno run --allow-read --allow-write --allow-run ./tools/format.js
|
||||
```
|
||||
|
||||
## lint.js
|
||||
|
@ -21,14 +21,14 @@ prerequisite to run this before code check in.
|
|||
To run linting:
|
||||
|
||||
```sh
|
||||
deno run --allow-read --allow-write --allow-run --unstable ./tools/lint.js
|
||||
deno run --allow-read --allow-write --allow-run ./tools/lint.js
|
||||
```
|
||||
|
||||
Tip: You can also use cargo to run the current or pending build of the deno
|
||||
executable
|
||||
|
||||
```sh
|
||||
cargo run -- run --allow-read --allow-write --allow-run --unstable ./tools/<script>
|
||||
cargo run -- run --allow-read --allow-write --allow-run ./tools/<script>
|
||||
```
|
||||
|
||||
## wgpu_sync.js
|
||||
|
@ -51,7 +51,7 @@ on top, somewhat similar to `git subtree`.
|
|||
To run the _copyright checker_:
|
||||
|
||||
```sh
|
||||
deno run --allow-read --allow-run --unstable ./tools/copyright_checker.js
|
||||
deno run --allow-read --allow-run ./tools/copyright_checker.js
|
||||
```
|
||||
|
||||
Then it will check all code files in the repository and report any files that
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env -S deno run --unstable --allow-env --allow-read --allow-write --allow-run
|
||||
#!/usr/bin/env -S deno run --allow-env --allow-read --allow-write --allow-run
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import $ from "https://deno.land/x/dax@0.32.0/mod.ts";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env -S deno run --unstable --allow-read=. --allow-run=git
|
||||
#!/usr/bin/env -S deno run --allow-read=. --allow-run=git
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { getSources, ROOT_PATH } from "./util.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env -S deno run --unstable --allow-write --allow-read --allow-run --allow-net
|
||||
#!/usr/bin/env -S deno run --allow-write --allow-read --allow-run --allow-net
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
import { join, ROOT_PATH } from "./util.js";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env -S deno run --unstable --allow-write --allow-read --allow-run --allow-net
|
||||
#!/usr/bin/env -S deno run --allow-write --allow-read --allow-run --allow-net
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
import { buildMode, getPrebuilt, getSources, join, ROOT_PATH } from "./util.js";
|
||||
import { checkCopyright } from "./copyright_checker.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env -S deno run --unstable --allow-read --allow-write
|
||||
#!/usr/bin/env -S deno run --allow-read --allow-write
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import exports from "../../cli/napi/sym/symbol_exports.json" assert {
|
||||
|
|
|
@ -54,7 +54,7 @@ export class DenoWorkspace {
|
|||
|
||||
async runFormatter() {
|
||||
await this.#repo.command(
|
||||
"deno run --unstable --allow-write --allow-read --allow-net --allow-run ./tools/format.js",
|
||||
"deno run --allow-write --allow-read --allow-net --allow-run ./tools/format.js",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,7 +100,9 @@ export async function runSingleTest(
|
|||
const args = [
|
||||
"run",
|
||||
"-A",
|
||||
"--unstable",
|
||||
"--unstable-broadcast-channel",
|
||||
"--unstable-webgpu",
|
||||
"--unstable-net",
|
||||
"--v8-flags=--expose-gc",
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue