@tilua-types/roblox 5.0.0 → 6.0.0
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 +3 -4
- package/index.d.tilua +3 -3
- package/lowering.mjs +2 -2
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -4,10 +4,9 @@ Luau and the whole Roblox API as tilua types: every class (921 of them), enum
|
|
|
4
4
|
(633), data type, service and global, plus what Luau adds to Lua —
|
|
5
5
|
`buffer`, `bit32`, `utf8`, `table.create`, `string.split`, `math.clamp`, ...
|
|
6
6
|
|
|
7
|
-
Luau is Roblox's language, so the two ship together. Underneath is
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
installs.
|
|
7
|
+
Luau is Roblox's language, so the two ship together. Underneath is the Lua
|
|
8
|
+
5.1 standard library, which is built into tilua — so this is the only package
|
|
9
|
+
a Roblox project installs.
|
|
11
10
|
|
|
12
11
|
```bash
|
|
13
12
|
npm i -D @tilua-types/roblox
|
package/index.d.tilua
CHANGED
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
--
|
|
20
20
|
-- The file opens with what Luau adds to Lua 5.1 (`buffer`, `bit32`,
|
|
21
21
|
-- ...), copied from scripts/luau.d.tilua — Luau is Roblox's, so they ship
|
|
22
|
-
-- together. The Lua 5.1 standard library underneath is
|
|
22
|
+
-- together. The Lua 5.1 standard library underneath is built into tilua.
|
|
23
23
|
|
|
24
24
|
-- What Luau adds to Lua 5.1.
|
|
25
25
|
--
|
|
26
26
|
-- This file is hand-written and is copied verbatim into the head of
|
|
27
27
|
-- packages/roblox/index.d.tilua by generate-roblox.mjs: Luau is Roblox's, so
|
|
28
|
-
-- the two ship as one library rather than two.
|
|
29
|
-
--
|
|
28
|
+
-- the two ship as one library rather than two. The standard library this
|
|
29
|
+
-- builds on is built into tilua, and a name declared in both keeps what Lua
|
|
30
30
|
-- gave it — declarations merge, overloads accumulate — so `table` here is
|
|
31
31
|
-- Lua's `table` plus these members.
|
|
32
32
|
--
|
package/lowering.mjs
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* Luau globals that answer several (`string.unpack`, `utf8.codepoint`,
|
|
21
21
|
* `coroutine.close`).
|
|
22
22
|
*
|
|
23
|
-
* `print`, `error` and the console
|
|
24
|
-
*
|
|
23
|
+
* `print`, `error` and the console are the compiler's own: Lua's standard
|
|
24
|
+
* library is built into tilua.
|
|
25
25
|
*/
|
|
26
26
|
import { readFileSync } from "node:fs"
|
|
27
27
|
import { dirname, join } from "node:path"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tilua-types/roblox",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Luau and the whole Roblox API as tilua types: every class, enum, data type, service and global",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"files": [
|
|
@@ -15,10 +15,7 @@
|
|
|
15
15
|
"lowering": "lowering.mjs"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@tilua/parser": "^
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@tilua-types/lua": "^5.0.0"
|
|
18
|
+
"@tilua/parser": "^5.0.0"
|
|
22
19
|
},
|
|
23
20
|
"keywords": [
|
|
24
21
|
"tilua",
|