INNER CODE UNIT · JavaScript
locations
99x/serverless-dynamodb-local · src/seeder.js:134
const locations = sources.map((source) => path.join(cwd, source));
return BbPromise.map(locations, (location) => {
return fileExists(location).then((exists) => {
if(!exists) {
throw new Error("source file " + location + " does not exist");
}
return getSeedsAtLocation(location);
});
// Smash the arrays together
}).then((seedArrays) => [].concat.apply([], seedArrays));
}
module.exports = { writeSeeds, locateSeeds };