Interactive installer: prompt before replacing an existing install or overwriting an existing config, reading answers from /dev/tty so it works under 'curl ... | sh'. Falls back to the prior non-interactive contract when no terminal is available. MOVE_FORCE=1 skips all prompts; new MOVE_RESEED_CONFIG=1 reseeds the config unattended (old file kept as .bak). Fix: install.sh no longer wipes a working install before downloading. The tree is built in a staging dir and swapped into place only once complete, so a failed download/extract/build leaves the existing install intact.
25 lines
417 B
JSON
25 lines
417 B
JSON
{
|
|
"name": "move",
|
|
"version": "1.3.2",
|
|
"private": true,
|
|
"license": "GPL-3.0-only",
|
|
"type": "module",
|
|
"bin": {
|
|
"move": "./src/move.ts"
|
|
},
|
|
"engines": {
|
|
"bun": ">=1.0.0"
|
|
},
|
|
"scripts": {
|
|
"start": "bun run src/move.ts",
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"@nut-tree-fork/nut-js": "^4.2.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"typescript": "^5"
|
|
}
|
|
}
|