typescript-to-lua
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -14,3 +14,3 @@ "use strict"; | ||
default: "inline", | ||
describe: "Specify Lua target version.", | ||
describe: "Specifies how js standard features missing in lua are imported.", | ||
type: "string", | ||
@@ -17,0 +17,0 @@ }, |
@@ -44,3 +44,2 @@ "use strict"; | ||
const rootDir = options.rootDir; | ||
// console.log(`Transpiling ${sourceFile.fileName}...`); | ||
// Transpile AST | ||
@@ -88,3 +87,3 @@ const lua = createTranspiler(checker, options, sourceFile).transpileSourceFile(); | ||
// Copy lualib to target dir | ||
if (options.luaLibImport === Transpiler_1.LuaLibImportKind.Require) { | ||
if (options.luaLibImport === Transpiler_1.LuaLibImportKind.Require || options.luaLibImport === Transpiler_1.LuaLibImportKind.Always) { | ||
fs.copyFileSync(path.resolve(__dirname, "../dist/lualib/lualib_bundle.lua"), path.join(options.outDir, "lualib_bundle.lua")); | ||
@@ -91,0 +90,0 @@ } |
@@ -5,4 +5,8 @@ "use strict"; | ||
class LuaTranspiler51 extends Transpiler_1.LuaTranspiler { | ||
/** @override */ | ||
transpileDestructingAssignmentValue(node) { | ||
return `unpack(${this.transpileExpression(node)})`; | ||
} | ||
} | ||
exports.LuaTranspiler51 = LuaTranspiler51; | ||
//# sourceMappingURL=Transpiler.51.js.map |
@@ -46,4 +46,8 @@ "use strict"; | ||
} | ||
/** @override */ | ||
transpileDestructingAssignmentValue(node) { | ||
return `table.unpack(${this.transpileExpression(node)})`; | ||
} | ||
} | ||
exports.LuaTranspiler52 = LuaTranspiler52; | ||
//# sourceMappingURL=Transpiler.52.js.map |
@@ -172,4 +172,9 @@ "use strict"; | ||
} | ||
static isExpressionStatement(node) { | ||
return node.parent === undefined | ||
|| ts.isExpressionStatement(node.parent) | ||
|| ts.isForStatement(node.parent); | ||
} | ||
} | ||
exports.TSHelper = TSHelper; | ||
//# sourceMappingURL=TSHelper.js.map |
{ | ||
"name": "typescript-to-lua", | ||
"license": "MIT", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"repository": "https://github.com/Perryvw/TypescriptToLua", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
122848
2085
0