From 01e0cb1fb29e36cf2b8b27e9449d900b4be81fc5 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 8 Sep 2021 11:00:00 +0200 Subject: [PATCH] Fix JS API build The interface of copyFileSync seems to have changed --- js/pack.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/pack.js b/js/pack.js index 149cf1c0e..232887f1d 100644 --- a/js/pack.js +++ b/js/pack.js @@ -23,11 +23,6 @@ exec('npm pack', function callback(error, stdout, stderr){ console.log(`${src} => ${dest}`) - fs.copyFileSync(`${src}`, `${dest}`, (err) => { - if (err) throw err; - console.log(`removing ${src}`) - fs.unlinkSync(file) - process.exit(0); - }) + fs.copyFileSync(`${src}`, `${dest}`) process.exit(0); }); \ No newline at end of file