Skip to content

Commit aea4d14

Browse files
authored
Merge pull request #16 from facebook/next
Update Upstream
2 parents 2086f12 + 058d03f commit aea4d14

File tree

7 files changed

+22
-12
lines changed

7 files changed

+22
-12
lines changed

packages/react-error-overlay/src/effects/proxyConsole.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const registerReactStack = () => {
2828
// $FlowFixMe
2929
console.reactStack = frames => reactFrameStack.push(frames);
3030
// $FlowFixMe
31-
console.reactStackEnd = frames => reactFrameStack.pop();
31+
console.reactStackEnd = () => reactFrameStack.pop();
3232
}
3333
};
3434

packages/react-error-overlay/src/utils/getStackFrames.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { unmap } from './unmapper';
1313

1414
function getStackFrames(
1515
error: Error,
16-
unhandledRejection: boolean = false,
16+
unhandledRejection: boolean = false, // eslint-disable-line
1717
contextSize: number = 3
1818
): Promise<StackFrame[] | null> {
1919
const parsedFrames = parse(error);

packages/react-scripts/template/README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,14 +1874,24 @@ monorepo/
18741874
"private": true
18751875
app1/
18761876
package.json:
1877-
"dependencies": ["@myorg/comp1": ">=0.0.0", "react": "^16.2.0"],
1878-
"devDependencies": ["react-scripts": "2.0.0"]
1877+
"dependencies": {
1878+
"@myorg/comp1": ">=0.0.0",
1879+
"react": "^16.2.0"
1880+
},
1881+
"devDependencies": {
1882+
"react-scripts": "2.0.0"
1883+
}
18791884
src/
18801885
app.js: import comp1 from '@myorg/comp1';
18811886
app2/
18821887
package.json:
1883-
"dependencies": ["@myorg/comp1": ">=0.0.0", "react": "^16.2.0"],
1884-
"devDependencies": ["react-scripts": "2.0.0"]
1888+
"dependencies": {
1889+
"@myorg/comp1": ">=0.0.0",
1890+
"react": "^16.2.0"
1891+
},
1892+
"devDependencies": {
1893+
"react-scripts": "2.0.0"
1894+
}
18851895
src/
18861896
app.js: import comp1 from '@myorg/comp1';
18871897
comp1/
@@ -1893,8 +1903,12 @@ monorepo/
18931903
package.json:
18941904
"name": "@myorg/comp2",
18951905
"version": "0.1.0",
1896-
"dependencies": ["@myorg/comp1": ">=0.0.0"],
1897-
"devDependencies": ["react": "^16.2.0"]
1906+
"dependencies": {
1907+
"@myorg/comp1": ">=0.0.0"
1908+
},
1909+
"devDependencies": {
1910+
"react": "^16.2.0"
1911+
}
18981912
index.js: import comp1 from '@myorg/comp1'
18991913
```
19001914
* Monorepo tools work on a package level, the same level as an npm package.

tasks/e2e-installs.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ root_path=$PWD
7575
if hash npm 2>/dev/null
7676
then
7777
npm i -g npm@latest
78-
npm cache clean || npm cache verify
7978
fi
8079

8180
# Bootstrap monorepo

tasks/e2e-kitchensink.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ root_path=$PWD
6868
if hash npm 2>/dev/null
6969
then
7070
npm i -g npm@latest
71-
npm cache clean || npm cache verify
7271
fi
7372

7473
# Bootstrap monorepo

tasks/e2e-monorepos.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ root_path=$PWD
6666
if hash npm 2>/dev/null
6767
then
6868
npm i -g npm@latest
69-
npm cache clean || npm cache verify
7069
fi
7170

7271
# Bootstrap create-react-app monorepo

tasks/e2e-simple.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ fi
7979
if hash npm 2>/dev/null
8080
then
8181
npm i -g npm@latest
82-
npm cache clean || npm cache verify
8382
fi
8483

8584
# Bootstrap monorepo

0 commit comments

Comments
 (0)