options.js 389 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const fsAdapter = require("../adapters/fs");
  4. function prepare(opts) {
  5. const options = Object.assign({
  6. fs: fsAdapter.getFileSystemAdapter(opts ? opts.fs : undefined),
  7. throwErrorOnBrokenSymlinks: true,
  8. followSymlinks: true
  9. }, opts);
  10. return options;
  11. }
  12. exports.prepare = prepare;