From 9968dbfc963bd24f816f9df326ecb656509205a2 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 13 Aug 2021 10:46:31 +0000 Subject: [PATCH] style: auto format --- scripts/docker/minify-docker.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/docker/minify-docker.js b/scripts/docker/minify-docker.js index eec5cb941f..cb871f0756 100644 --- a/scripts/docker/minify-docker.js +++ b/scripts/docker/minify-docker.js @@ -3,16 +3,13 @@ const fs = require('fs-extra'); const path = require('path'); const { nodeFileTrace } = require('@vercel/nft'); const files = ['lib/index.js', 'api/now.js']; -const resultFolder = "app-minimal"; - +const resultFolder = 'app-minimal'; (async () => { - console.log("Start analyizing..."); + console.log('Start analyizing...'); const { fileList } = await nodeFileTrace(files, { base: path.resolve(path.join(__dirname, '../..')), }); - console.log("Total files need to be copy: " + fileList.length); - return Promise.all( - fileList.map((e) => fs.copy(e, path.resolve(path.join(resultFolder, e)))) - ); + console.log('Total files need to be copy: ' + fileList.length); + return Promise.all(fileList.map((e) => fs.copy(e, path.resolve(path.join(resultFolder, e))))); })();