Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther committed May 5, 2024
1 parent 50fed7d commit 40b5a36
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions scripts/patch-node-datachannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,37 @@ async function main() {
stdio: "inherit",
});

execFileSync("rm", ["-rf", "prebuilds"], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});

execFileSync("npm", ["run", "build"], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});

execFileSync("rm", ["-rf", "node_modules"], {
execFileSync("mv", ["build/Release/node_datachannel.node", "."], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});

execFileSync("rm", ["-rf", "prebuilds"], {
execFileSync("npm", ["run", "clean"], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});

execFileSync("mkdir", ["-p", "build/Release"], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});

execFileSync("mv", ["node_datachannel.node", "build/Release"], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});

execFileSync("rm", ["-rf", "node_modules"], {
cwd: "node_modules/node-datachannel",
stdio: "inherit",
});
Expand Down

0 comments on commit 40b5a36

Please sign in to comment.