@ssebastien/tcmd 0.1.1 → 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.
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 @ssebastien/select and @ssebastien/select-tui
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
@@ -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.1",
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",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@opentui/core": "0.5.9",
20
- "@ssebastien/select": "^1.2.1",
21
- "@ssebastien/select-tui": "^0.1.0"
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"