From 6f48c526c6ad1260020e099011c9496476c0fce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 9 Nov 2020 20:56:43 +0100 Subject: chore: reference dprint config file in format script (#8318) * chore: reference dprint config file in format script * chore: ignore .git folder in dprint config --- tools/format.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/format.js') diff --git a/tools/format.js b/tools/format.js index 9786e6fe3..1d891f361 100755 --- a/tools/format.js +++ b/tools/format.js @@ -3,10 +3,11 @@ import { getPrebuiltToolPath, getSources, join, ROOT_PATH } from "./util.js"; async function dprint() { + const configFile = join(ROOT_PATH, ".dprintrc.json"); const execPath = getPrebuiltToolPath("dprint"); console.log("dprint"); const p = Deno.run({ - cmd: [execPath, "fmt"], + cmd: [execPath, "fmt", "--config=" + configFile], }); const { success } = await p.status(); if (!success) { -- cgit v1.2.3