From 91e3457b4935becbe1991bb6d1e15a2570193aa2 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 15 Jan 2024 13:48:19 +0530 Subject: [PATCH] chore: bump tooling + lune v0.8.0 compat --- .lune/make.luau | 2 +- aftman.toml | 2 +- lunew | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 lunew diff --git a/.lune/make.luau b/.lune/make.luau index 046e90c..ecb67a6 100644 --- a/.lune/make.luau +++ b/.lune/make.luau @@ -94,7 +94,7 @@ local loader = task.spawn(function() end) task.spawn(function() - local child = spawn("lune", { + local child = spawn("./lunew", { "wax", "bundle", "input=default.project.json", diff --git a/aftman.toml b/aftman.toml index 8c79205..1666d83 100644 --- a/aftman.toml +++ b/aftman.toml @@ -3,6 +3,6 @@ # To add a new tool, add an entry to this table. [tools] -lune = "filiptibell/lune@0.7.8" +lune = "lune-org/lune@0.8.0" darklua = "seaofvoices/darklua@0.10.2" rojo = "rojo-rbx/rojo@7.3.0" diff --git a/lunew b/lunew new file mode 100755 index 0000000..60248c1 --- /dev/null +++ b/lunew @@ -0,0 +1,13 @@ +#!/bin/bash + +lune=$(which lune) + +if (( $(lune --version | cut -d ' ' -f 2 | cut -d '.' -f 2) >= 8 )); then + if compgen -G "$1*" > /dev/null || compgen -G ".lune/$1*" > /dev/null; then + lune run "$@" + exit $? + fi +fi + +lune "$@" +exit $?