diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3e086b031..749005b494 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,7 +71,7 @@ jobs: run: npm run lint - name: Check Formatting - run: prettier --check \src + run: npm run check-format photon-build-examples: runs-on: ubuntu-22.04 name: "Build Examples" diff --git a/photon-client/package.json b/photon-client/package.json index b25a078fe7..d5cfb307e4 100644 --- a/photon-client/package.json +++ b/photon-client/package.json @@ -8,7 +8,8 @@ "preview": "vite preview --port 4173", "build-only": "vite build", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", - "format": "prettier --write src/" + "format": "prettier --write src/", + "check-format": "prettier --check src/" }, "dependencies": { "@fontsource/prompt": "^5.0.5",