diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml index 0d9c6c9..8653999 100644 --- a/.github/workflows/check-formatting.yml +++ b/.github/workflows/check-formatting.yml @@ -1,4 +1,4 @@ -name: Checking formatting +name: Check formatting on: push: diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..49c3ce5 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,5 @@ +# Ignore build artifacts +/dist/ + +# Ignore all Markdown files +*.md diff --git a/package.json b/package.json index 20b7832..74b314f 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "description": "A GitHub Action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.", "main": "./dist/index.js", "scripts": { - "format": "prettier --write 'src/**/*.js'", - "format:check": "prettier --check 'src/**/*.js'", + "format": "prettier --write .", + "format:check": "prettier --check .", "prepare": "npm run format && ncc build src/index.js -o dist --source-map --license licenses.txt", "test": "jest" },