diff --git a/build/concat.js b/build/concat.js index ab51a9c..6d902ac 100644 --- a/build/concat.js +++ b/build/concat.js @@ -6,13 +6,12 @@ fs.readdir(path.join(__dirname, "..", "src"), function (err, files) { return path.join("src", value); }); - Promise.all(files.map((name) => fs.promises.readFile(name))) - .then((fileContents) => { - fs.writeFileSync( - path.join(__dirname, "..", "dist", "index.d.ts"), - Buffer.concat(fileContents) - ); - }, (reason) => { + Promise.all(files.map((name) => fs.promises.readFile(name))).then( + (fileContents) => { + fs.writeFileSync(path.join(__dirname, "..", "dist", "index.d.ts"), Buffer.concat(fileContents)); + }, + (reason) => { console.log(reason); - }); + }, + ); });