We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e0801e commit 0af4af6Copy full SHA for 0af4af6
packages/cli/src/tools/copyFiles.ts
@@ -69,7 +69,7 @@ function copyBinaryFile(
69
let cbCalled = false;
70
const {mode} = fs.statSync(srcPath);
71
const readStream = fs.createReadStream(srcPath);
72
- const writeStream = fs.createWriteStream(destPath);
+ const writeStream = fs.createWriteStream(destPath, {mode});
73
readStream.on('error', (err) => {
74
done(err);
75
});
@@ -78,7 +78,6 @@ function copyBinaryFile(
78
79
readStream.on('close', () => {
80
done();
81
- fs.chmodSync(destPath, mode);
82
83
readStream.pipe(writeStream);
84
function done(err?: Error) {
0 commit comments