Skip to content

Commit

Permalink
[v2] fix builds after master merge (#5892)
Browse files Browse the repository at this point in the history
* [v2] update babel in new plugins

* fix missing closing parenthesis
  • Loading branch information
pieh authored and m-allanson committed Jun 14, 2018
1 parent b77cc82 commit 341b1ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/gatsby-plugin-page-creator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.26.0",
"@babel/runtime": "7.0.0-beta.47",
"bluebird": "^3.5.0",
"chokidar": "^1.7.0",
"glob": "^7.1.1",
Expand All @@ -27,7 +27,8 @@
"slash": "^1.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"@babel/cli": "7.0.0-beta.47",
"@babel/core": "7.0.0-beta.47",
"cross-env": "^5.0.5"
}
}
5 changes: 3 additions & 2 deletions packages/gatsby-remark-images-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
"watch": "babel -w src --out-dir . --ignore **/__tests__"
},
"dependencies": {
"@babel/runtime": "7.0.0-beta.47",
"axios": "^0.18.0",
"babel-runtime": "^6.26.0",
"cheerio": "^1.0.0-rc.2",
"is-relative-url": "^2.0.0",
"lodash": "^4.17.4",
"sharp": "^0.20.2",
"unist-util-select": "^1.5.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"@babel/cli": "7.0.0-beta.47",
"@babel/core": "7.0.0-beta.47",
"cross-env": "^5.0.5"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-contentful/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ exports.sourceNodes = async (
// are "updated" so will get the now deleted reference removed.

function deleteContentfulNode (node) {
const localizedNodes = locales.map((locale) => getNode(normalize.makeId({ id: node.sys.id, currentLocale: locale.code, defaultLocale }))
const localizedNodes = locales.map((locale) => getNode(normalize.makeId({ id: node.sys.id, currentLocale: locale.code, defaultLocale })))
localizedNodes.forEach(node => deleteNode({ node }))
}

Expand Down

0 comments on commit 341b1ce

Please sign in to comment.