Upgrade to Node 12 LTS (#2831)

* Upgrade to node 12 LTS

* Run prettier
This commit is contained in:
Fran Zekan
2020-03-14 14:24:39 +01:00
committed by GitHub
parent be17215d86
commit 91ffdb0812
11 changed files with 6770 additions and 5816 deletions

View File

@@ -20,9 +20,7 @@ exports.sourceNodes = async ({actions}) => {
});
} catch (error) {
console.error(
`The gatsby-source-react-error-codes plugin has failed:\n${
error.message
}`,
`The gatsby-source-react-error-codes plugin has failed:\n${error.message}`,
);
process.exit(1);

View File

@@ -20,10 +20,12 @@ exports.onPostBuild = async ({store}) => {
// versions.yml structure is [{path: string, url: string, ...}, ...]
createRedirects(
versions.filter(version => version.path && version.url).map(version => ({
fromPath: version.path,
toPath: version.url,
})),
versions
.filter(version => version.path && version.url)
.map(version => ({
fromPath: version.path,
toPath: version.url,
})),
redirectsFilePath,
);
};