Skip to content

Commit 72bf586

Browse files
committed
Add binary build script
1 parent f321f94 commit 72bf586

File tree

3 files changed

+991
-31
lines changed

3 files changed

+991
-31
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
node_modules/
44
.DS_Store
55
yarn-error.log
6+
/binaries/

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
"license": "Apache-2.0",
1212
"scripts": {
1313
"build": "tsc -p .",
14-
"lint": "prettier '**/*.ts' -l"
14+
"lint": "prettier '**/*.ts' -l",
15+
"build-binaries": "mkdir -p binaries; pkg -t node8-linux-x86,node8-linux-x64,node8-macos-x64 --out-path binaries/ package.json"
1516
},
1617
"devDependencies": {
1718
"@types/lodash": "^4.14.116",
1819
"@types/node": "^10.7.1",
20+
"pkg": "^4.3.4",
1921
"prettier": "1.14.2",
2022
"tslint": "^5.11.0",
2123
"typescript": "^3.0.1"

0 commit comments

Comments
 (0)