0.1.1
This commit is contained in:
parent
cc19888102
commit
8970bd2895
2 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
"name": "@endeavorance/rundir",
|
||||
"type": "module",
|
||||
"module": "src/cli.ts",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"bin": {
|
||||
"rundir": "build/cli.js"
|
||||
},
|
||||
|
|
|
@ -186,7 +186,8 @@ async function ls(scriptName?: string) {
|
|||
return;
|
||||
}
|
||||
|
||||
const filesInDir = new Glob(`${RUNDIR_PATH}/*`).scan();
|
||||
const currentRundir = findNearestRundir();
|
||||
const filesInDir = new Glob(`${currentRundir}/*`).scan();
|
||||
const scriptLines: string[] = [];
|
||||
|
||||
for await (const file of filesInDir) {
|
||||
|
@ -199,6 +200,7 @@ async function ls(scriptName?: string) {
|
|||
|
||||
const sorted = scriptLines.sort((a, b) => a.localeCompare(b));
|
||||
|
||||
console.log(chalk.dim(currentRundir));
|
||||
console.log(sorted.join("\n"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue