Skip to content

Commit

Permalink
Fix JS API build
Browse files Browse the repository at this point in the history
The interface of copyFileSync seems to have changed
  • Loading branch information
Corentin Jabot committed Sep 8, 2021
1 parent d3a9acf commit 01e0cb1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions js/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit 01e0cb1

Please sign in to comment.