Skip to content

Commit

Permalink
Copy files
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 4, 2024
1 parent f22db2b commit a603f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a603f80

Please sign in to comment.