diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-19 16:35:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 16:35:58 -0400 |
commit | 9b4ae0868d5f5a5ef1d49843737f950bbb841cbf (patch) | |
tree | b3c2f77809b8e8f7c556fa413e54be26f0b5a17c /tools/release/deno_workspace.ts | |
parent | 1bdf5a2081b1567ed73d8f85edae53c3f9724e2b (diff) |
chore: update deno automation to 0.12 (#15248)
Diffstat (limited to 'tools/release/deno_workspace.ts')
-rw-r--r-- | tools/release/deno_workspace.ts | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/tools/release/deno_workspace.ts b/tools/release/deno_workspace.ts index 2ffac6cca..892986ac0 100644 --- a/tools/release/deno_workspace.ts +++ b/tools/release/deno_workspace.ts @@ -1,13 +1,13 @@ // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. -import { path, ReleasesMdFile, Repo } from "./deps.ts"; +import { $, ReleasesMdFile, Repo } from "./deps.ts"; export class DenoWorkspace { #repo: Repo; static get rootDirPath() { - const currentDirPath = path.dirname(path.fromFileUrl(import.meta.url)); - return path.resolve(currentDirPath, "../../"); + const currentDirPath = $.path.dirname($.path.fromFileUrl(import.meta.url)); + return $.path.resolve(currentDirPath, "../../"); } static async load(): Promise<DenoWorkspace> { @@ -48,19 +48,13 @@ export class DenoWorkspace { getReleasesMdFile() { return new ReleasesMdFile( - path.join(DenoWorkspace.rootDirPath, "Releases.md"), + $.path.join(DenoWorkspace.rootDirPath, "Releases.md"), ); } - runFormatter() { - return this.#repo.runCommandWithOutput([ - "deno", - "run", - "--unstable", - "--allow-write", - "--allow-read", - "--allow-run", - "./tools/format.js", - ]); + async runFormatter() { + await this.#repo.command( + "deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js", + ); } } |