Skip to content

Commit

Permalink
Fix typos in example monorepo documentation. (#4164)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfordlemley authored and Timer committed Mar 21, 2018
1 parent b2fd8db commit 058d03f
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1874,14 +1874,24 @@ monorepo/
"private": true
app1/
package.json:
"dependencies": ["@myorg/comp1": ">=0.0.0", "react": "^16.2.0"],
"devDependencies": ["react-scripts": "2.0.0"]
"dependencies": {
"@myorg/comp1": ">=0.0.0",
"react": "^16.2.0"
},
"devDependencies": {
"react-scripts": "2.0.0"
}
src/
app.js: import comp1 from '@myorg/comp1';
app2/
package.json:
"dependencies": ["@myorg/comp1": ">=0.0.0", "react": "^16.2.0"],
"devDependencies": ["react-scripts": "2.0.0"]
"dependencies": {
"@myorg/comp1": ">=0.0.0",
"react": "^16.2.0"
},
"devDependencies": {
"react-scripts": "2.0.0"
}
src/
app.js: import comp1 from '@myorg/comp1';
comp1/
Expand All @@ -1893,8 +1903,12 @@ monorepo/
package.json:
"name": "@myorg/comp2",
"version": "0.1.0",
"dependencies": ["@myorg/comp1": ">=0.0.0"],
"devDependencies": ["react": "^16.2.0"]
"dependencies": {
"@myorg/comp1": ">=0.0.0"
},
"devDependencies": {
"react": "^16.2.0"
}
index.js: import comp1 from '@myorg/comp1'
```
* Monorepo tools work on a package level, the same level as an npm package.
Expand Down

0 comments on commit 058d03f

Please sign in to comment.