@rbxts/app-forge 0.6.0-alpha.46 → 0.6.0-alpha.48

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.
@@ -4,18 +4,19 @@ local TS = _G[script]
4
4
  -- Components
5
5
  local AppRegistry = TS.import(script, script.Parent.Parent, "decorator").AppRegistry
6
6
  local function ParentRule(entry, forge)
7
- local entrySource = forge:getSource(entry)()
8
7
  local changed = false
8
+ local entrySource = forge:getSource(entry)()
9
9
  -- ▼ ReadonlyMap.forEach ▼
10
10
  local _callback = function(app, name)
11
11
  local rules = app.rules
12
- if not rules then
12
+ if not rules or rules.parent ~= entry then
13
13
  return nil
14
14
  end
15
- if entry == name then
15
+ if name == entry then
16
16
  return nil
17
17
  end
18
- if rules.parent == entry and not entrySource then
18
+ local childSource = forge:getSource(name)()
19
+ if not entrySource and childSource then
19
20
  forge:close(name)
20
21
  changed = true
21
22
  end
@@ -50,7 +50,7 @@ declare namespace Types {
50
50
  exclusiveGroup?: string;
51
51
  };
52
52
 
53
- type Generic<N extends AppNames> = {
53
+ type Generic<N extends AppNames = AppNames> = {
54
54
  parent?: Exclude<AppNames, N>;
55
55
  exclusiveGroup?: GroupNames;
56
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.6.0-alpha.46",
3
+ "version": "0.6.0-alpha.48",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",