From 53ead3971a1510011e819781b660b082a128d0e1 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 10 Jul 2023 18:43:24 +0200 Subject: [PATCH] fix: error on (initial) file creation (#113) Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> --- lib/write-pretty-file.js | 2 +- templates/github-actions/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/write-pretty-file.js b/lib/write-pretty-file.js index e5f47ff..182c462 100644 --- a/lib/write-pretty-file.js +++ b/lib/write-pretty-file.js @@ -25,7 +25,7 @@ export default async function writePrettyFile(path, content) { await writeFile( path, - pretier.format(content, { + await pretier.format(content, { parser, }), ); diff --git a/templates/github-actions/test.yml b/templates/github-actions/test.yml index 32a3d33..4272f46 100644 --- a/templates/github-actions/test.yml +++ b/templates/github-actions/test.yml @@ -22,7 +22,7 @@ jobs: cache: npm - run: npm ci - run: npm test - + # The "test" step can be required in branch protection and does not # change each time the test matrix changes. test: