Skip to content

Commit

Permalink
Revert "Fix typos in example monorepo documentation. (facebook#4164)"
Browse files Browse the repository at this point in the history
This reverts commit 058d03f.
  • Loading branch information
Timer committed Sep 18, 2018
1 parent 2300f9e commit 02b30d6
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1877,24 +1877,14 @@ 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 @@ -1906,12 +1896,8 @@ 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 02b30d6

Please sign in to comment.