From d4274e9a8913482cba564498503974cd015d9613 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 12 Jul 2023 09:37:50 +0200 Subject: [PATCH] fix: update prettier CI --- .github/workflows/test.yml | 2 +- package.json | 4 +++- yarn.lock | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb21ca6b..b381f626 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - name: Prettier - run: yarn prettier + run: yarn prettier-check test: name: Tests runs-on: ubuntu-latest diff --git a/package.json b/package.json index a4f72e91..a1849c96 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "sync-all-apps-factory": "NEXT_PUBLIC_NODE_ENV=main yarn sync-apps-factory && NEXT_PUBLIC_NODE_ENV=demo yarn sync-apps-factory", "upload-zk-drop-metadata": "yarn run build-config && tsx -r ./svgMock.js ./src/scripts/upload-metadata/upload-metadata.script.ts", "sync-apps-factory": "yarn run build-config && tsx -r ./svgMock.js ./src/scripts/sync-apps-factory/sync-apps-factory.script.ts", - "prettier": "prettier --write 'src/**/*.ts' '.github' 'README.md'" + "prettier": "prettier --write 'src/**/*.ts' '.github' 'README.md'", + "prettier-check": "prettier --check 'src/**/*.ts' '.github' 'README.md'" }, "dependencies": { "@google-cloud/local-auth": "^2.1.1", @@ -63,6 +64,7 @@ "@types/styled-components": "^5.1.26", "@types/testing-library__jest-dom": "5.14.5", "encoding": "^0.1.13", + "husky": "^8.0.3", "jest": "^29.5.0", "jest-date-mock": "^1.0.8", "jest-environment-jsdom": "29.5.0", diff --git a/yarn.lock b/yarn.lock index 20f7c3e1..bf6aa35a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6114,6 +6114,11 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" +husky@^8.0.3: + version "8.0.3" + resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" + integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== + iconv-lite@0.6.3, iconv-lite@^0.6.2: version "0.6.3" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"