1- import * as ts from "typescript" ;
21import * as path from "path" ;
2+ import * as ts from "typescript" ;
33
44import { Expect } from "alsatian" ;
55
6- import { LuaTarget , LuaTranspiler , TranspileError } from "../../src/Transpiler" ;
76import { CompilerOptions } from "../../src/CommandLineParser" ;
87import { createTranspiler } from "../../src/Compiler" ;
8+ import { LuaTarget , LuaTranspiler , TranspileError } from "../../src/Transpiler" ;
99
1010import { lauxlib , lua , lualib , to_jsstring , to_luastring } from "fengari" ;
1111
1212const fs = require ( "fs" ) ;
1313
14- const libSource = fs . readFileSync ( path . join ( path . dirname ( require . resolve ( ' typescript' ) ) , ' lib.es6.d.ts' ) ) . toString ( ) ;
14+ const libSource = fs . readFileSync ( path . join ( path . dirname ( require . resolve ( " typescript" ) ) , " lib.es6.d.ts" ) ) . toString ( ) ;
1515
16- export function transpileString ( str : string , options : CompilerOptions = { luaLibImport : "require " , luaTarget : LuaTarget . Lua53 } ) : string {
16+ export function transpileString ( str : string , options : CompilerOptions = { luaLibImport : "none " , luaTarget : LuaTarget . Lua53 } ) : string {
1717 const compilerHost = {
1818 directoryExists : ( ) => true ,
1919 fileExists : ( fileName ) : boolean => true ,
@@ -118,4 +118,4 @@ const tslualib = fs.readFileSync("dist/lualib/lualib_bundle.lua") + "\n";
118118
119119const jsonlib = fs . readFileSync ( "test/src/json.lua" ) + "\n" ;
120120
121- export const minimalTestLib = tslualib + jsonlib ;
121+ export const minimalTestLib = tslualib + jsonlib ;
0 commit comments