Skip to content

Commit

Permalink
Fix chmod issue
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 4, 2024
1 parent 9fc1ee4 commit 6fe5b65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ for (const entrypointFilePath of entrypointFilePaths) {
});

fs.rmSync(nccOutDirPath, { recursive: true });

fs.chmodSync(entrypointFilePath, fs.statSync(entrypointFilePath).mode | fs.constants.S_IXUSR | fs.constants.S_IXGRP | fs.constants.S_IXOTH);
}

transformCodebase({
Expand All @@ -106,4 +104,8 @@ transformCodebase({
}
});

for (const entrypointFilePath of entrypointFilePaths) {
fs.chmodSync(entrypointFilePath, fs.statSync(entrypointFilePath).mode | fs.constants.S_IXUSR | fs.constants.S_IXGRP | fs.constants.S_IXOTH);
}

console.log(chalk.green(`✓ built in ${((Date.now() - startTime) / 1000).toFixed(2)}s`));

0 comments on commit 6fe5b65

Please sign in to comment.