Skip to content

Commit 89363b8

Browse files
committedFeb 4, 2021
Clean up removal of mustache
1 parent fe7124f commit 89363b8

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed
 

‎CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.3
2+
3+
- HTTP error codes are handled more correctly when package authors test their packages
4+
5+
16
## 0.2.2
27

38
- startup time is reduces by 70% (about 150ms)

‎binstub.js.template ‎binstub.js.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (os == "win32") {
1818
}
1919

2020
var unpackedBinPath = path.join(__dirname, "..", "unpacked_bin");
21-
var binPath = path.join(unpackedBinPath, $binName$ + binExt);
21+
var binPath = path.join(unpackedBinPath, {{ binName }} + binExt);
2222

2323
function execBin() {
2424
spawn(

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"prepare.js",
2222
"test.js",
2323
"binstall.js",
24-
"binstub.js.template",
24+
"binstub.js.mustache",
2525
"bin/binwrap-install",
2626
"bin/binwrap-prepare",
2727
"bin/binwrap-test"

‎prepare.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module.exports = function prepare(config) {
66
fs.mkdirSync("bin");
77
}
88

9-
var binstubTemplate = fs.readFileSync(path.join(__dirname, "binstub.js.template")).toString();
9+
var binstubTemplate = fs.readFileSync(path.join(__dirname, "binstub.js.mustache")).toString();
1010

1111
config.binaries.forEach(function(bin) {
1212
var binPath = path.join("bin", bin);
13-
var content = binstubTemplate.replace(/\$binName\$/g, JSON.stringify(bin));
13+
var content = binstubTemplate.replace(/{{ binName }}/g, JSON.stringify(bin));
1414
fs.writeFileSync(binPath, content);
1515
fs.chmodSync(binPath, "755");
1616
});

0 commit comments

Comments
 (0)
Please sign in to comment.