@ssebastien/tcmd 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/bin/tcmd +1 -1
  2. package/bin/tcmd.js +4 -0
  3. package/package.json +1 -1
package/bin/tcmd CHANGED
@@ -14,4 +14,4 @@ while [ -L "$script" ]; do
14
14
  esac
15
15
  done
16
16
  dir=$(CDPATH= cd -- "$(dirname -- "$script")" && pwd)
17
- exec bun "$dir/../src/js/tcmd/tui/index.js" "$@"
17
+ exec bun "$dir/tcmd.js" "$@"
package/bin/tcmd.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bun
2
+ // TinyCommand `tcmd` entry point.
3
+ const paths = process.argv.slice(2).filter((arg) => arg !== "-")
4
+ await import("../src/js/tcmd/tui/index.js").then((tui) => tui.main(paths))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssebastien/tcmd",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "TinyCommand: a midnight-commander-like CLI and desktop tool",
5
5
  "type": "module",
6
6
  "main": "./src/js/tcmd/index.js",