From a603f809f6ae9cd638ff25a7b544456d01eef79b Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 3 Nov 2024 22:11:50 -0800 Subject: [PATCH] Copy files --- scripts/build-npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-npm.js b/scripts/build-npm.js index a1f3969..cbc31fd 100644 --- a/scripts/build-npm.js +++ b/scripts/build-npm.js @@ -85,7 +85,7 @@ try { fs.mkdirSync(dir + '/npm/watcher'); } catch (err) { } for (let file of pkg.files) { - fs.copyFileSync(`${dir}/${file}`, `npm/watcher/${file}`); + fs.cpSync(`${dir}/${file}`, `npm/watcher/${file}`, {recursive: true}); } pkg.optionalDependencies = optionalDependencies; fs.writeFileSync(`${dir}/npm/watcher/package.json`, JSON.stringify(pkg, false, 2) + '\n');