build(usb): run chmod u+x after build (#487)

This commit is contained in:
Róbert Kiss
2017-11-02 23:20:53 +01:00
committed by László Monda
parent 0c30eccaca
commit f6ea327813
2 changed files with 6 additions and 1 deletions

View File

@@ -5,11 +5,14 @@
"main": "UhkConnection.js", "main": "UhkConnection.js",
"license": "GPL-3.0", "license": "GPL-3.0",
"scripts": { "scripts": {
"build": "tsc", "build": "npm run tsc && npm run chmod",
"tsc": "tsc",
"chmod": "shx chmod u+x dist/*.js",
"watch": "tsc -w" "watch": "tsc -w"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "8.0.28", "@types/node": "8.0.28",
"shx": "0.2.2",
"typescript": "2.5.3" "typescript": "2.5.3"
}, },
"dependencies": { "dependencies": {

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env node
import { UhkBuffer, UserConfiguration } from 'uhk-common'; import { UhkBuffer, UserConfiguration } from 'uhk-common';
import * as fs from 'fs'; import * as fs from 'fs';