@ssebastien/tcmd 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/tcmd +12 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Or install it globally with `npm install -g @ssebastien/tcmd` and run `tcmd`.
|
|
|
41
41
|
For development:
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
bun install # installs
|
|
44
|
+
bun install # installs the published select packages under their import names
|
|
45
45
|
bun run tcmd # open cwd (left) and ~ (right)
|
|
46
46
|
bun run tcmd /tmp ~ # open specific directories
|
|
47
47
|
```
|
package/bin/tcmd
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
# TinyCommand `tcmd` entry point.
|
|
3
3
|
if ! command -v bun >/dev/null 2>&1; then
|
|
4
|
-
printf '%s\n' 'tcmd requires Bun (https://bun.sh). Install Bun, then run `
|
|
4
|
+
printf '%s\n' 'tcmd requires Bun (https://bun.sh). Install Bun, then run `bun x @ssebastien/tcmd` again.' >&2
|
|
5
5
|
exit 1
|
|
6
6
|
fi
|
|
7
|
-
|
|
7
|
+
script=$0
|
|
8
|
+
while [ -L "$script" ]; do
|
|
9
|
+
dir=$(CDPATH= cd -- "$(dirname -- "$script")" && pwd)
|
|
10
|
+
link=$(readlink "$script")
|
|
11
|
+
case "$link" in
|
|
12
|
+
/*) script=$link ;;
|
|
13
|
+
*) script=$dir/$link ;;
|
|
14
|
+
esac
|
|
15
|
+
done
|
|
16
|
+
dir=$(CDPATH= cd -- "$(dirname -- "$script")" && pwd)
|
|
17
|
+
exec bun "$dir/../src/js/tcmd/tui/index.js" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssebastien/tcmd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "TinyCommand: a midnight-commander-like CLI and desktop tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/js/tcmd/index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@opentui/core": "0.5.9",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"select": "npm:@ssebastien/select@^1.2.1",
|
|
21
|
+
"select.tui": "npm:@ssebastien/select-tui@^0.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"happy-dom": "^20.10.6"
|