Skip to content

Commit

Permalink
fix: repair build wasm npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jan 29, 2024
1 parent 446ad0a commit cab9873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/build_wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (process.argv[2] === '--setup') {
try {
mkdirSync(join(WASM_SRC, 'build'));
process.exit(0);
} catch (error) {
} catch (error: any) {
if (error.code !== 'EEXIST') {
throw error;
}
Expand All @@ -39,7 +39,7 @@ if (process.argv[2] === '--docker') {
// It will work flawessly if uid === gid === 1000
// there will be some warnings otherwise.
if (process.platform === 'linux') {
cmd += ` --user ${process.getuid()}:${process.getegid()}`;
cmd += ` --user ${process.getuid!()}:${process.getegid!()}`;
}
cmd += ` --mount type=bind,source=${WASM_SRC}/build,target=/home/node/llhttp/build llhttp_wasm_builder npm run wasm`;

Expand All @@ -51,7 +51,7 @@ if (process.argv[2] === '--docker') {

try {
mkdirSync(WASM_OUT);
} catch (error) {
} catch (error: any) {
if (error.code !== 'EEXIST') {
throw error;
}
Expand Down

0 comments on commit cab9873

Please sign in to comment.