This commit is contained in:
Benjamin Toby 2025-01-16 07:45:52 +01:00
parent 7c34ff6be7
commit c358cc8f26
2 changed files with 13 additions and 3 deletions

View File

@ -1,11 +1,11 @@
{
"name": "@moduletrace/less-watcher",
"version": "1.0.1",
"version": "1.0.2",
"description": "A minimal package to watch less files and compile them to css",
"main": "dist/index.js",
"bin": {
"lessc-watcher": "dist/index.js",
"less-watcher": "dist/index.js"
"lessc-watcher": "run.sh",
"less-watcher": "run.sh"
},
"repository": {
"type": "git",

10
run.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if command -v bun >/dev/null 2>&1; then
exec bun dist/index.js "$@"
elif command -v node >/dev/null 2>&1; then
exec node dist/index.js "$@"
else
echo "Neither Bun nor Node.js is installed."
exit 1
fi