@quenty/loader 4.0.1-canary.256.edbbcfc.0 → 5.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/CHANGELOG.md +12 -1
- package/LICENSE.md +1 -1
- package/package.json +2 -2
- package/src/LoaderUtils.lua +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@4.1.0...@quenty/loader@5.0.0) (2022-05-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Handle objectvalues linked in the actual package folder (as top-level packages) ([b678f55](https://github.com/Quenty/NevermoreEngine/commit/b678f55989c30d9bab53724ca0573b8fea125aaf))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [4.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/loader@4.0.0...@quenty/loader@4.1.0) (2022-03-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/loader
|
|
9
20
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/loader",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A simple module loader for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "9f7eaea7543c33c89d2e32c38491b13f9271f4f7"
|
|
30
30
|
}
|
package/src/LoaderUtils.lua
CHANGED
|
@@ -118,11 +118,21 @@ function LoaderUtils.discoverTopLevelPackages(packages, instance)
|
|
|
118
118
|
|
|
119
119
|
if LoaderUtils.isPackage(instance) then
|
|
120
120
|
table.insert(packages, instance)
|
|
121
|
+
elseif instance:IsA("ObjectValue") then
|
|
122
|
+
local linkedValue = instance.Value
|
|
123
|
+
if linkedValue and LoaderUtils.isPackage(linkedValue) then
|
|
124
|
+
table.insert(packages, linkedValue)
|
|
125
|
+
end
|
|
121
126
|
else
|
|
122
127
|
-- Loop through all folders
|
|
123
128
|
for _, item in pairs(instance:GetChildren()) do
|
|
124
129
|
if item:IsA("Folder") then
|
|
125
130
|
LoaderUtils.discoverTopLevelPackages(packages, item)
|
|
131
|
+
elseif item:IsA("ObjectValue") then
|
|
132
|
+
local linkedValue = item.Value
|
|
133
|
+
if linkedValue and LoaderUtils.isPackage(linkedValue) then
|
|
134
|
+
table.insert(packages, linkedValue)
|
|
135
|
+
end
|
|
126
136
|
elseif item:IsA("ModuleScript") then
|
|
127
137
|
table.insert(packages, item)
|
|
128
138
|
end
|