From ac7667446952d99acce065bd6e3d8b41bb957a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Fri, 23 Aug 2019 19:33:14 +0200 Subject: [PATCH] chore: add convert-user-config-to-bin npm script (#1022) usage of the script `$ npm run convert-user-config-to-bin -- ` --- package.json | 3 ++- packages/usb/user-config-json-to-bin.ts | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index be87300c..3c0dfcf2 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,7 @@ "release": "node ./scripts/release.js", "clean": "lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist ./tmp", "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" } } diff --git a/packages/usb/user-config-json-to-bin.ts b/packages/usb/user-config-json-to-bin.ts index 1748e6cc..ff9e7aca 100755 --- a/packages/usb/user-config-json-to-bin.ts +++ b/packages/usb/user-config-json-to-bin.ts @@ -1,6 +1,3 @@ -#!/usr/bin/env ts-node -/// - import { UhkBuffer, UserConfiguration } from 'uhk-common'; import * as fs from 'fs';