Skip to content

Commit 00b6fb4

Browse files
msluszniakMateusz Sluszniak
andauthored
Refactor monorepo's package.json (#377)
## Description This PR removes warnings while installing dependencies using `yarn`. Before this change there were some warnings about `typescript` dependency: ``` ➤ YN0000: · Yarn 4.1.1 ➤ YN0000: ┌ Project validation ➤ YN0057: │ react-native-executorch: Resolutions field will be ignored ➤ YN0000: └ Completed ➤ YN0000: ┌ Resolution step ➤ YN0000: └ Completed in 0s 504ms ➤ YN0000: ┌ Post-resolution validation ➤ YN0002: │ computer-vision@workspace:apps/computer-vision doesn't provide typescript (pe8761), requested by react-native-wheel-scrollview-picker. ➤ YN0002: │ speech-to-text@workspace:apps/speech-to-text doesn't provide typescript (pf5fda), requested by react-native-wheel-scrollview-picker. ➤ YN0086: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code. ➤ YN0000: └ Completed ➤ YN0000: ┌ Fetch step ➤ YN0000: └ Completed in 0s 502ms ➤ YN0000: ┌ Link step ➤ YN0000: └ Completed in 0s 239ms ➤ YN0000: · Done with warnings in 1s 341ms ``` after the change, it looks like this: ``` ➤ YN0000: · Yarn 4.1.1 ➤ YN0000: ┌ Project validation ➤ YN0057: │ llm: Resolutions field will be ignored ➤ YN0057: │ react-native-executorch: Resolutions field will be ignored ➤ YN0000: └ Completed ➤ YN0000: ┌ Resolution step ➤ YN0000: └ Completed ➤ YN0000: ┌ Fetch step ➤ YN0000: └ Completed in 0s 383ms ➤ YN0000: ┌ Link step ➤ YN0000: └ Completed in 0s 239ms ``` Apart from that, I change monorepo `package.json` to include all example apps from `apps` directory all in one. ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [x] iOS - [x] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [x] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> --------- Co-authored-by: Mateusz Sluszniak <[email protected]>
1 parent 74d3cf2 commit 00b6fb4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
"workspaces": {
66
"packages": [
77
"packages/react-native-executorch",
8-
"apps/llm",
9-
"apps/computer-vision",
10-
"apps/speech-to-text",
11-
"apps/text-embeddings"
8+
"apps/*"
129
]
1310
},
1411
"scripts": {

0 commit comments

Comments
 (0)