From dd57e9e83b48c7b827fd16d38d10a3796c8617e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Stefa=C5=84czyk?= Date: Wed, 10 Jul 2024 14:45:36 +0200 Subject: [PATCH] fix: fix format-js task to reflect changes made to folder structure (#2342) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Summary Fixes following error while commiting: ``` ✖ yarn format-js: [error] No files matching the pattern were found: "./Example/src/**/*.tsx". error Command failed with exit code 2. ``` ## Test Plan Run `yarn format-js` or do a commit so hook will get ran. ### What's required for testing (prerequisites)? - ### What are the steps to reproduce (after prerequisites)? See test plan ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ✅ | ## Checklist - [X] I have tested this on a device and a simulator - [ ] I added documentation in `README.md` - [] I updated the typed files (typescript) - [ ] I added a test for the API in the `__tests__` folder --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d438996a..0cf88ee14 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "format": "yarn format-js && yarn format-ios && yarn format-java", "format-ios": "find apple/ common/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i", "format-java": "node ./scripts/format-java.js", - "format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./Example/src/**/*.tsx", + "format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./apps/**/*.tsx ./example/**/*.tsx ./*-example/**/*.tsx", "jest": "jest", "lint": "eslint --ext .ts,.tsx src", "peg": "pegjs -o src/lib/extract/transform.js ./src/lib/extract/transform.peg",