Skip to content

Commit

Permalink
node build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmzb committed Nov 21, 2019
1 parent 6b30530 commit 7452aa0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@material-ui/core": "^4.5.1",
"babel-plugin-styled-components": "^1.10.6",
"console-feed": "^2.8.10",
"console-feed": "mxmzb/console-feed#fix-node-builds",
"gatsby": "^2.15.28",
"gatsby-image": "^2.2.23",
"gatsby-plugin-manifest": "^2.2.20",
Expand Down Expand Up @@ -41,7 +41,8 @@
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing \""
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing \"",
"postinstall": "cd node_modules/console-feed && yarn && yarn build"
},
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion example/src/components/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ const PlaygroundDemo = ({
</Loading>
</Height>
<IFrame>
<Console logs={logs} variant="dark" />
{typeof window !== "undefined" && window !== undefined && (
<Console logs={logs} variant="dark" />
)}
</IFrame>
</FullWidth>
);
Expand Down
5 changes: 2 additions & 3 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3279,10 +3279,9 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0:
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=

console-feed@^2.8.10:
console-feed@mxmzb/console-feed#fix-node-builds:
version "2.8.10"
resolved "https://registry.yarnpkg.com/console-feed/-/console-feed-2.8.10.tgz#a4f215f7972d8855b379fa2e4f31248d5f5a578b"
integrity sha512-n1WeWsFUTcVptTR3c9/RYkrH9wVC+X4aEF9WpfKcmDdLorcdEk/N4gO+hdNkBYIzXyWQi2NoFBZTWsOFww4vaQ==
resolved "https://codeload.github.com/mxmzb/console-feed/tar.gz/ab6fdfcb5f4eccc22a2b086d6aabe34ecdceb656"
dependencies:
emotion "^9.1.1"
emotion-theming "^9.0.0"
Expand Down

0 comments on commit 7452aa0

Please sign in to comment.