chore: add convert-user-config-to-bin npm script (#1022)
usage of the script `$ npm run convert-user-config-to-bin -- <path of the bin file>`
This commit is contained in:
committed by
László Monda
parent
239c989cbe
commit
ac76674469
@@ -101,6 +101,7 @@
|
|||||||
"release": "node ./scripts/release.js",
|
"release": "node ./scripts/release.js",
|
||||||
"clean": "lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist ./tmp",
|
"clean": "lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist ./tmp",
|
||||||
"predeploy-gh-pages": "lerna run build:web --scope=uhk-web",
|
"predeploy-gh-pages": "lerna run build:web --scope=uhk-web",
|
||||||
"deploy-gh-pages": "gh-pages -d packages/uhk-web/dist"
|
"deploy-gh-pages": "gh-pages -d packages/uhk-web/dist",
|
||||||
|
"convert-user-config-to-bin": "node -r ts-node/register ./packages/usb/user-config-json-to-bin.ts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
#!/usr/bin/env ts-node
|
|
||||||
///<reference path="./node_modules/@types/node/index.d.ts"/>
|
|
||||||
|
|
||||||
import { UhkBuffer, UserConfiguration } from 'uhk-common';
|
import { UhkBuffer, UserConfiguration } from 'uhk-common';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user