fix: Packaging problems, chore: Bump jecs

"+ Packages were properly shipped with dist, but were shipped with a .project.json pointing to lib" -m "+ Bump jecs to the latest source" -m "+ Bump jecs-utils to v0.1.2 and release"
This commit is contained in:
Mark Marks 2024-09-22 13:30:58 +02:00
parent 64be498117
commit 4216bdfead
6 changed files with 17 additions and 24 deletions

View file

@ -3,4 +3,4 @@ local spawn = require("util/spawn")
spawn.start("rojo sourcemap dev.project.json -o sourcemap.json")
spawn.start("darklua process --config .darklua.json lib/ dist/", { env = { ROBLOX_DEV = "false" } })
spawn.start("rojo build build.project.json -o build.rbxm")
spawn.start("rojo build default.project.json -o build.rbxm")

View file

@ -26,7 +26,7 @@ while true do
local commit_title = stdio.prompt("text", "Commit title -- leave blank to stop committing")
if not commit_title or commit_title == "" then
print("Stopping commit")
break
continue
end
local commit_messages = ""

View file

@ -1,6 +0,0 @@
{
"name": "jecs-utils",
"tree": {
"$path": "dist"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "jecs-utils",
"tree": {
"$path": "lib"
"$path": "dist"
}
}

View file

@ -727,7 +727,6 @@ local function world_add(world: World, entity: i53, id: i53): ()
end
end
-- Symmetric like `World.add` but idempotent
local function world_set(world: World, entity: i53, id: i53, data: unknown): ()
local entityIndex = world.entityIndex
local record = entityIndex.sparse[entity]
@ -1020,38 +1019,38 @@ do
if idr_t then
for archetype_id in idr_t.cache do
local children = {}
local idr_o_archetype = archetypes[archetype_id]
local idr_t_archetype = archetypes[archetype_id]
local idr_o_types = idr_o_archetype.types
local idr_t_types = idr_t_archetype.types
for _, child in idr_o_archetype.entities do
for _, child in idr_t_archetype.entities do
table.insert(children, child)
end
for _, id in idr_o_types do
for _, id in idr_t_types do
if not ECS_IS_PAIR(id) then
continue
end
local id_record = component_index[id]
if id_record then
local object = ECS_ENTITY_T_LO(id)
if object == delete then
local id_record = component_index[id]
local flags = id_record.flags
if bit32.band(flags, ECS_ID_DELETE) ~= 0 then
for _, child in children do
-- Cascade deletions of it has Delete as component trait
world_delete(world, child, destruct)
end
break
else
local object = ECS_ENTITY_T_LO(id)
if object == delete then
for _, child in children do
world_remove(world, child, id)
end
for _, child in children do
world_remove(world, child, id)
end
end
end
end
archetype_destroy(world, idr_t_archetype)
end
end

View file

@ -1,6 +1,6 @@
[package]
name = "mark-marks/jecs-utils"
version = "0.1.1"
version = "0.1.2"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
license = "MIT"