How to use the gatsby-core-utils.joinPath function in gatsby-core-utils

To help you get started, we’ve selected a few gatsby-core-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gatsbyjs / gatsby / packages / gatsby / src / bootstrap / requires-writer.js View on Github external
const writeAndMove = (file, data) => {
    const destination = joinPath(program.directory, `.cache`, file)
    const tmp = `${destination}.${Date.now()}`
    return fs
      .writeFile(tmp, data)
      .then(() => fs.move(tmp, destination, { overwrite: true }))
  }
github gatsbyjs / gatsby / packages / gatsby / src / bootstrap / requires-writer.js View on Github external
c =>
        `  "${c.componentChunkName}": hot(preferDefault(require("${joinPath(
          c.component
        )}")))`
    )

gatsby-core-utils

A collection of gatsby utils used in different gatsby packages

MIT
Latest version published 2 days ago

Package Health Score

98 / 100
Full package analysis