mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
f248050cb4
This change aims to replace all relative import specifiers targeted at `tests/util/std` with mapped ones (using a `deno.json` file). Towards updating the `std` git submodule.
23 lines
635 B
JavaScript
Executable File
23 lines
635 B
JavaScript
Executable File
#!/usr/bin/env -S deno run --allow-write --allow-read --allow-run --allow-net --config=tests/config/deno.json
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
import { join, ROOT_PATH } from "./util.js";
|
|
|
|
const subcommand = Deno.args.includes("--check") ? "check" : "fmt";
|
|
const configFile = join(ROOT_PATH, ".dprint.json");
|
|
const cmd = new Deno.Command("deno", {
|
|
args: [
|
|
"run",
|
|
"-A",
|
|
"--no-config",
|
|
"npm:dprint@0.47.2",
|
|
subcommand,
|
|
"--config=" + configFile,
|
|
],
|
|
cwd: ROOT_PATH,
|
|
stdout: "inherit",
|
|
stderr: "inherit",
|
|
});
|
|
|
|
const { code } = await cmd.output();
|
|
Deno.exit(code);
|