From 7ab55e9ac59e4def13ba31be8158472daf4970d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 2 Nov 2017 17:43:29 +0100 Subject: [PATCH] Move user-config-json-to-bin.ts to the usb package and use import instead of require. --- .../src/config-serializer => usb}/user-config-json-to-bin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename packages/{uhk-common/src/config-serializer => usb}/user-config-json-to-bin.ts (79%) diff --git a/packages/uhk-common/src/config-serializer/user-config-json-to-bin.ts b/packages/usb/user-config-json-to-bin.ts similarity index 79% rename from packages/uhk-common/src/config-serializer/user-config-json-to-bin.ts rename to packages/usb/user-config-json-to-bin.ts index 9f858778..60e42f67 100644 --- a/packages/uhk-common/src/config-serializer/user-config-json-to-bin.ts +++ b/packages/usb/user-config-json-to-bin.ts @@ -1,6 +1,5 @@ -import { UhkBuffer, UserConfiguration } from './index'; - -const fs = require('fs'); +import { UhkBuffer, UserConfiguration } from '../uhk-common/src/config-serializer/index'; +import * as fs from 'fs'; const inputFile = process.argv[2]; console.log(inputFile);