chore: use granular unstable flags in tools/ (#22138)

This commit is contained in:
Bartek Iwańczuk 2024-01-26 23:35:43 +01:00 committed by GitHub
parent 84fb2ad71b
commit d889f99657
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 13 additions and 11 deletions

View File

@ -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

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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 {

View File

@ -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",
);
}
}

View File

@ -100,7 +100,9 @@ export async function runSingleTest(
const args = [
"run",
"-A",
"--unstable",
"--unstable-broadcast-channel",
"--unstable-webgpu",
"--unstable-net",
"--v8-flags=--expose-gc",
];