diff --git a/.lune/build.luau b/.lune/build.luau index a3577cd..a6b1d5c 100644 --- a/.lune/build.luau +++ b/.lune/build.luau @@ -10,17 +10,8 @@ local manifest = require("./lib/manifest") local pathfs = require("../lune_packages/pathfs") type ToolChoice = "rojo" -type ManifestExt = { - scripts: { - [ToolChoice]: { - version: string, - tool_dependencies: { { [string]: manifest.DependencySpecifier } }, - }, - }, -} - local SCRIPTS_DIR = pathfs.getAbsolutePathOf(pathfs.Path.from(".pesde")) -local MANIFEST = manifest(nil, (nil :: any) :: { meta: ManifestExt }) +local MANIFEST = manifest(nil, (nil :: any) :: { meta: manifest.PesdeManifest }) local SCRIPTS = { syncConfigGenerator = [[local process = require("@lune/process") @@ -90,6 +81,9 @@ local function installDeps(): number -- Moves the cursor back 1 spot and clears everything after "\x1b[2D\x1b[0K" ) + + -- Wait 10ms between each spinner state + task.wait(0.1) end end end) @@ -97,7 +91,7 @@ local function installDeps(): number -- `process_spawn` is an async rust function, so tokio spawns a hardware -- thread and mlua will yield the current thread, allowing for `spinnerThread` -- to continue executing - local child = process.spawn("pesde", { "install" }, { + local child = process.spawn("/home/usr/.pesde/bin/pesde", { "install" }, { stdio = "default", }) diff --git a/.lune/lib/manifest.luau b/.lune/lib/manifest.luau index 5380bf1..5bcc68e 100644 --- a/.lune/lib/manifest.luau +++ b/.lune/lib/manifest.luau @@ -41,12 +41,11 @@ export type DependencySpecifier = (({ export type PackageTarget = { environment: "roblox" | "roblox_server", lib: string, -} | { +} | ({ environment: "luau" | "lune", - lib: string, - bin: string, - scripts: { [string]: string }, -} +} & ( + { scripts: { [string]: string } } | { lib: string } | { bin: string } +)) export type PesdeManifest = { name: string,