"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _fs=_interopRequireDefault(require("fs"));
var _path=_interopRequireDefault(require("path"));

function listAllFiles(dir){
return _fs.default.readdirSync(dir).reduce((list,file)=>{
const name=_path.default.join(dir,file);
const isDir=_fs.default.statSync(name).isDirectory();

return list.concat(isDir?listAllFiles(name):[name]);
},[]);
}var _default=

listAllFiles;exports.default=_default;