diff --git a/.dprintrc.json b/.dprintrc.json index 726b2a4ad5..4ec0ea6758 100644 --- a/.dprintrc.json +++ b/.dprintrc.json @@ -13,6 +13,7 @@ "includes": ["**/*.{ts,tsx,js,jsx,json,md}"], "excludes": [ ".cargo_home", + ".git", "cli/dts/lib.d.ts", "cli/dts/lib.dom*", "cli/dts/lib.es*", diff --git a/tools/format.js b/tools/format.js index 9786e6fe37..1d891f361b 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) {