Skip to content

Commit 3056128

Browse files
committed
chore(common): create flag file without node
Addresses code review comments.
1 parent d552b44 commit 3056128

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,6 @@ lcov.info
183183
/keyman*.buildinfo
184184
/keyman*.changes
185185
/keyman*.tar.?z
186+
187+
# flag file for build script
188+
.configured

common/tools/hextobin/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
1111

1212
builder_describe "Build hextobin" clean configure build
1313
builder_describe_outputs \
14-
configure /common/tools/hextobin/build/.configured \
14+
configure /common/tools/hextobin/.configured \
1515
build /common/tools/hextobin/build/index.js
1616

1717
builder_parse "$@"

common/tools/hextobin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"hextobin": "build/hextobin.js"
1818
},
1919
"scripts": {
20-
"postinstall": "node --eval \"const fs =require('fs'); const path = require('path'); var dir = 'build'; if (!fs.existsSync(dir)) { fs.mkdirSync(dir); } fs.writeFileSync(path.join(dir, '.configured'), '');\""
20+
"postinstall": "echo configured > .configured"
2121
}
2222
}

0 commit comments

Comments
 (0)