const fs = require("fs");

const path = require("path");

const MemoryFileSystem = require("memory-fs");

const globby = require("globby");

module.exports = eject;

function eject() {
  const vfs = new MemoryFileSystem();
  vfs.mkdirpSync("/static");
  const files = globby.sync(["*.js"], {
    cwd: path.join(__dirname, "static")
  });
  files.forEach(file => {
    const source = path.join(__dirname, "static", file);
    ;
    const target = path.join("/static", file);
    vfs.writeFileSync(target, fs.readFileSync(source));
  });
  return vfs;
}
//# sourceMappingURL=eject.js.map