mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
c2259f78eb
removes third_party submodule, tools are installed on-demand. - removed `load_test` and websocket benchmark (covered by benchy) - removed node/bun http benchmarks (covered by benchy) - `dlint` & `dprint` downloaded on-demand. - `wrk` & `hyperfine` downloaded before CI benchmark run. Install locally using: `./tools/install_prebuilt.js wrk hyperfine` #### updating dlint/dprint update version in `tools/util.js` and place binary in `denoland/deno_third_party`.
16 lines
597 B
JavaScript
Executable file
16 lines
597 B
JavaScript
Executable file
#!/usr/bin/env -S deno run --unstable --allow-write --allow-read --allow-run --allow-net
|
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
import { getPrebuilt, join, ROOT_PATH } from "./util.js";
|
|
|
|
const subcommand = Deno.args.includes("--check") ? "check" : "fmt";
|
|
const configFile = join(ROOT_PATH, ".dprint.json");
|
|
const execPath = await getPrebuilt("dprint");
|
|
const cmd = new Deno.Command(execPath, {
|
|
args: [subcommand, "--config=" + configFile],
|
|
cwd: ROOT_PATH,
|
|
stdout: "inherit",
|
|
stderr: "inherit",
|
|
});
|
|
|
|
const { code } = await cmd.output();
|
|
Deno.exit(code);
|