lib/prepublish.js
function transformDir ({ config, entry, outdir }) {
  return glob.sync(`${entry[0]}/**/*.js`).map(filename =>
    transformFile({
      config,
      entry: [filename, filename.replace(entry[0], entry[1] || outdir)]
    })
  )
}
function transformDir ({ config, entry, outdir }) {
  return glob.sync(`${entry[0]}/**/*.js`).map(filename =>
    transformFile({
      config,
      entry: [filename, filename.replace(entry[0], entry[1] || outdir)]
    })
  )
}
function transformDir ( { config , entry , outdir } ) { return glob . sync ( ` ${ entry [ 0 ] } ` ) . map ( filename => transformFile ( { config , entry : [ filename , filename . replace ( entry [ 0 ] , entry [ 1 ] || outdir ) ] } ) ) }
Transform all of the files in a directory recursively.
Transform all of the files in a directory recursively .