1
0
Fork 0
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:
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: To run formatting:
```sh ```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 ## lint.js
@ -21,14 +21,14 @@ prerequisite to run this before code check in.
To run linting: To run linting:
```sh ```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 Tip: You can also use cargo to run the current or pending build of the deno
executable executable
```sh ```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 ## wgpu_sync.js
@ -51,7 +51,7 @@ on top, somewhat similar to `git subtree`.
To run the _copyright checker_: To run the _copyright checker_:
```sh ```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 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. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import $ from "https://deno.land/x/dax@0.32.0/mod.ts"; 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. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { getSources, ROOT_PATH } from "./util.js"; 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. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { join, ROOT_PATH } from "./util.js"; 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. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { buildMode, getPrebuilt, getSources, join, ROOT_PATH } from "./util.js"; import { buildMode, getPrebuilt, getSources, join, ROOT_PATH } from "./util.js";
import { checkCopyright } from "./copyright_checker.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. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import exports from "../../cli/napi/sym/symbol_exports.json" assert { import exports from "../../cli/napi/sym/symbol_exports.json" assert {

View file

@ -54,7 +54,7 @@ export class DenoWorkspace {
async runFormatter() { async runFormatter() {
await this.#repo.command( 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 = [ const args = [
"run", "run",
"-A", "-A",
"--unstable", "--unstable-broadcast-channel",
"--unstable-webgpu",
"--unstable-net",
"--v8-flags=--expose-gc", "--v8-flags=--expose-gc",
]; ];