File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed
Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 88 "build" : " tsc"
99 },
1010 "devDependencies" : {
11- "@types/node" : " 8.0.28"
11+ "@types/node" : " 8.0.28" ,
12+ "typescript" : " 2.5.3"
1213 },
1314 "dependencies" : {
1415 "chalk" : " 2.1.0" ,
Original file line number Diff line number Diff line change 1+ {
2+ "compileOnSave" : false ,
3+ "compilerOptions" : {
4+ "sourceMap" : true ,
5+ "declaration" : false ,
6+ "module" : " commonjs" ,
7+ "moduleResolution" : " node" ,
8+ "emitDecoratorMetadata" : true ,
9+ "experimentalDecorators" : true ,
10+ "target" : " es2016" ,
11+ "typeRoots" : [
12+ " node_modules/@types"
13+ ],
14+ "lib" : [
15+ " es2015.iterable" ,
16+ " es2016" ,
17+ " dom" ,
18+ " dom.iterable"
19+ ]
20+ }
21+ }
Original file line number Diff line number Diff line change 1- import { UhkBuffer , UserConfiguration } from '../ uhk-common/src/config-serializer/index ' ;
1+ import { UhkBuffer , UserConfiguration } from 'uhk-common' ;
22import * as fs from 'fs' ;
33
44const inputFile = process . argv [ 2 ] ;
55console . log ( inputFile ) ;
66const outputFile = process . argv [ 3 ] ;
77
8- const config1Js = JSON . parse ( fs . readFileSync ( inputFile ) ) ;
8+ const config1Js = JSON . parse ( fs . readFileSync ( inputFile ) . toString ( ) ) ;
99const config1Ts : UserConfiguration = new UserConfiguration ( ) . fromJsonObject ( config1Js ) ;
1010const config1Buffer = new UhkBuffer ( ) ;
1111config1Ts . toBinary ( config1Buffer ) ;
You can’t perform that action at this time.
0 commit comments