packaging(pesde), tooling(rokit), deps: Fix pesde support, bump tools, bump jecs

This commit is contained in:
marked 2024-12-03 20:17:06 +01:00
parent 3e7bb3c7ff
commit 0818b498a6
10 changed files with 31 additions and 24 deletions

5
.gitignore vendored
View file

@ -44,7 +44,9 @@ dist/
# Wally files # Wally files
DevPackages DevPackages
Packages Packages
luau_packages
wally.lock wally.lock
pesde.lock
WallyPatches WallyPatches
# Typescript # Typescript
@ -55,7 +57,6 @@ WallyPatches
roblox.toml roblox.toml
sourcemap.json sourcemap.json
globalTypes.d.luau globalTypes.d.luau
# Used for testing, unfortunately we can't just install it with wally and expect it to work in vanilla luau jecs_src.luau
jecs.luau
# Stores Github PAT # Stores Github PAT
.env .env

View file

@ -1,8 +1,7 @@
{ {
"languageMode": "strict", "languageMode": "strict",
"aliases": { "aliases": {
"jecs_utils": "lib", "lib": "lib",
"testkit": "test/testkit", "pkg": "luau_packages"
"jecs": "jecs"
} }
} }

View file

@ -64,4 +64,6 @@ end
local gh_api_tag: gh_api_tag = serde.decode("json", response.body) local gh_api_tag: gh_api_tag = serde.decode("json", response.body)
spawn.start(`curl https://raw.githubusercontent.com/ukendio/jecs/{gh_api_tag.object.sha}/src/init.luau -o jecs.luau`) spawn.start(
`curl https://raw.githubusercontent.com/ukendio/jecs/{gh_api_tag.object.sha}/src/init.luau -o jecs_src.luau`
)

View file

@ -18,15 +18,7 @@
"rojoProjectFile": "dev.project.json" "rojoProjectFile": "dev.project.json"
}, },
"require": { "require": {
"mode": "relativeToFile", "mode": "relativeToFile"
"fileAliases": {
"@jecs_utils": "lib",
"@testkit": "test/testkit",
"@jecs": "Packages/jecs"
},
"directoryAliases": {
"@lune": ".lune/.lune-defs/"
}
} }
}, },
"ext": { "ext": {

13
jecs.luau Normal file
View file

@ -0,0 +1,13 @@
--!strict
--!native
--!optimize 2
-- pesde adds dependencies by including a folder with them in the package
-- wally just adds a file for each dependency
-- this is here to mitigate that
local jecs = require("luau_packages/jecs")
export type Archetype = jecs.Archetype
export type Id<T = nil> = jecs.Id<T>
export type Pair<First, Second> = jecs.Pair<First, Second>
export type Entity<T = nil> = jecs.Entity<T>
export type World = jecs.World
return jecs

View file

@ -2,7 +2,7 @@
--!optimize 2 --!optimize 2
local jecs = require("../jecs") local jecs = require("../jecs")
type entity<T = nil> = jecs.Entity<T> type entity<T = nil> = jecs.Entity<T>
type id<T = nil> = entity<T> | jecs.Pair type id<T = nil> = jecs.Id<T>
local world = require("./world").get local world = require("./world").get

View file

@ -1,10 +1,10 @@
name = "mark_marks/jecs_utils" name = "mark_marks/jecs_utils"
version = "0.1.6" version = "0.1.7-rc.0"
description = "A set of utilities for jecs" description = "A set of utilities for jecs"
authors = ["marked/Mark-Marks"] authors = ["marked/Mark-Marks"]
repository = "https://github.com/mark-marks/jecs-utils" repository = "https://github.com/mark-marks/jecs-utils"
license = "MIT" license = "MIT"
includes = ["lib", "LICENSE", "pesde.toml", "README.md"] includes = ["lib", "LICENSE", "pesde.toml", "README.md", "jecs.luau"]
[target] [target]
environment = "luau" environment = "luau"

View file

@ -8,7 +8,7 @@ wally = "upliftgames/wally@0.3.2"
rojo = "rojo-rbx/rojo@7.4.4" rojo = "rojo-rbx/rojo@7.4.4"
lune = "lune-org/lune@0.8.9" lune = "lune-org/lune@0.8.9"
selene = "kampfkarren/selene@0.27.1" selene = "kampfkarren/selene@0.27.1"
luau-lsp = "johnnymorganz/luau-lsp@1.32.4" luau-lsp = "johnnymorganz/luau-lsp@1.36.0"
stylua = "johnnymorganz/stylua@0.20.0" stylua = "johnnymorganz/stylua@0.20.0"
wally-package-types = "johnnymorganz/wally-package-types@1.3.2" wally-package-types = "johnnymorganz/wally-package-types@1.3.2"
darklua = "seaofvoices/darklua@0.13.1" darklua = "seaofvoices/darklua@0.13.1"

View file

@ -1,8 +1,8 @@
--!strict --!strict
-- stylua: ignore start -- stylua: ignore start
local jecs = require("@jecs") local jecs = require("@pkg/jecs")
local jecs_utils = require("@jecs_utils") local jecs_utils = require("@lib/init")
local testkit = require("@testkit") local testkit = require("./testkit")
type entity<T = nil> = jecs.Entity<T> type entity<T = nil> = jecs.Entity<T>

View file

@ -1,6 +1,6 @@
[package] [package]
name = "mark-marks/jecs-utils" name = "mark-marks/jecs-utils"
version = "0.1.6" version = "0.1.7-rc.0"
registry = "https://github.com/UpliftGames/wally-index" registry = "https://github.com/UpliftGames/wally-index"
realm = "shared" realm = "shared"
license = "MIT" license = "MIT"
@ -15,4 +15,4 @@ include = [
] ]
[dependencies] [dependencies]
jecs = "ukendio/jecs@0.3.2" jecs = "ukendio/jecs@0.4.0"