Skip to content

Commit 05f176f

Browse files
committed
feat(path): expose path modules
1 parent 1b9aaf7 commit 05f176f

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

mods.rockspec.template

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ description = {
1414
license = "MIT",
1515
detailed = [[
1616
Mods provides small, focused Lua modules:
17-
is, keyword, List, operator, repr, runtime, Set, str, stringcase, tbl,
18-
template, and validate.
17+
is, keyword, List, ntpath, operator, path, posixpath, repr, runtime, Set, str,
18+
stringcase, tbl, template, and validate.
1919
]],
2020
}
2121

@@ -30,7 +30,10 @@ build = {
3030
["mods.is"] = "src/mods/is.lua",
3131
["mods.keyword"] = "src/mods/keyword.lua",
3232
["mods.List"] = "src/mods/List.lua",
33+
["mods.ntpath"] = "src/mods/ntpath.lua",
3334
["mods.operator"] = "src/mods/operator.lua",
35+
["mods.path"] = "src/mods/path.lua",
36+
["mods.posixpath"] = "src/mods/posixpath.lua",
3437
["mods.repr"] = "src/mods/repr.lua",
3538
["mods.runtime"] = "src/mods/runtime.lua",
3639
["mods.Set"] = "src/mods/Set.lua",

src/mods/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ local module_names = {
44
"is",
55
"keyword",
66
"List",
7+
"ntpath",
78
"operator",
9+
"path",
10+
"posixpath",
811
"repr",
912
"runtime",
1013
"Set",

types/mods.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
local repr ---@module "mods.repr"
44
local template ---@module "mods.template"
55

6-
---Entry point that exposes all modules under one table.
6+
---
7+
---Entry point that exposes all modules under one 💤 lazily loaded table.
8+
---
79
---@class mods
810
---@field is mods.is
911
---@field keyword mods.keyword
1012
---@field List mods.List
13+
---@field ntpath mods.ntpath
1114
---@field operator mods.operator
15+
---@field path mods.path
16+
---@field posixpath mods.posixpath
1217
---@field runtime mods.runtime
1318
---@field Set mods.Set
1419
---@field str mods.str

0 commit comments

Comments
 (0)