Skip to content

Commit a5761dc

Browse files
committed
chore: avoid prettier bin shadowing from expo-module-scripts
Refs: expo/expo#42994
1 parent 5707f12 commit a5761dc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ For repository-specific details, see [`CONTRIBUTING.md`](./CONTRIBUTING.md).
604604

605605
- Authorization changes outside app not captured
606606
When we've asked whether the user has authorized us to use screen time, and the state is changed outside the app, the native API doesn't update until the app restarts, i.e. this flow:
607-
608607
1. Ask for current permission
609608
2. Change permission outside the app
610609
3. Ask for current permission again will return same as (1)

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"private": true,
55
"description": "Provides access to Apples DeviceActivity API",
66
"scripts": {
7-
"format": "prettier --write .",
8-
"format:check": "prettier --check .",
7+
"format": "node ./node_modules/prettier/bin/prettier.cjs --write .",
8+
"format:check": "node ./node_modules/prettier/bin/prettier.cjs --check .",
9+
"format:version": "node ./node_modules/prettier/bin/prettier.cjs --version && node -e \"console.log(require('./node_modules/prettier/package.json').version)\"",
910
"lint": "eslint .",
1011
"pre-push": "bun run typecheck && bun run lint && packages/react-native-device-activity/ios/TestHarness/Pods/SwiftLint/swiftlint lint --strict --config .swiftlint.yml",
1112
"typecheck": "cd packages/react-native-device-activity && bun run typecheck && cd ../../apps/example && bun run typecheck",

0 commit comments

Comments
 (0)