@gwigz/slua-tstl-plugin 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/index.js +0 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
- Translates TypeScript patterns to native Luau/LSL equivalents (see below)
|
|
8
8
|
- Handles adjusting `Vector`, `Quaternion`, and `UUID` casing
|
|
9
9
|
- Validates `luaTarget` is set to `Luau`
|
|
10
|
-
- Warns if `luaLibImport` is not `none` or `inline` (for now)
|
|
11
10
|
|
|
12
11
|
## Transforms
|
|
13
12
|
|
package/dist/index.js
CHANGED
|
@@ -432,18 +432,6 @@ const plugin = {
|
|
|
432
432
|
source: "@gwigz/slua-tstl-plugin",
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
if (options.luaLibImport !== undefined &&
|
|
436
|
-
![tstl.LuaLibImportKind.None, tstl.LuaLibImportKind.Inline].includes(options.luaLibImport)) {
|
|
437
|
-
diagnostics.push({
|
|
438
|
-
file: undefined,
|
|
439
|
-
start: undefined,
|
|
440
|
-
length: undefined,
|
|
441
|
-
messageText: '@gwigz/slua-tstl-plugin requires luaLibImport to be "none" or "inline"',
|
|
442
|
-
category: ts.DiagnosticCategory.Warning,
|
|
443
|
-
code: 90002,
|
|
444
|
-
source: "@gwigz/slua-tstl-plugin",
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
435
|
return diagnostics;
|
|
448
436
|
},
|
|
449
437
|
beforeEmit(program, _options, _emitHost, result) {
|