Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
style(prettier): apply prettier and add missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Feb 26, 2019
1 parent f7d1644 commit 6da5399
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ async function calculateDirs(store, extraDirsToCache = []) {

const dirsToCache = [
resolve(program.directory, `public`),
resolve(program.directory, `.cache`)
resolve(program.directory, `.cache`),
...extraDirsToCache.map(dirToCache =>
resolve(program.directory, dirToCache)
),
)
]

for (const dir of dirsToCache) {
Expand All @@ -36,7 +36,10 @@ exports.onPreInit = async function({ store }, { extraDirsToCache }) {
return
}

const { dirsToCache, netlifyCacheDir } = await calculateDirs(store, extraDirsToCache)
const { dirsToCache, netlifyCacheDir } = await calculateDirs(
store,
extraDirsToCache
)

for (const dirPath of dirsToCache) {
const dirName = basename(dirPath)
Expand Down Expand Up @@ -64,7 +67,10 @@ exports.onPostBuild = async function({ store }, { extraDirsToCache }) {
return
}

const { dirsToCache, netlifyCacheDir } = await calculateDirs(store, extraDirsToCache)
const { dirsToCache, netlifyCacheDir } = await calculateDirs(
store,
extraDirsToCache
)

for (const dirPath of dirsToCache) {
const dirName = basename(dirPath)
Expand Down

0 comments on commit 6da5399

Please sign in to comment.