deeplink-parity 0.6.4 → 0.6.5

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.
@@ -83,6 +83,12 @@ async function pickRegex(rl, files, yes) {
83
83
  * after printing its full content and asking. The scanned repositories are never touched.
84
84
  */
85
85
  export async function runInit(roots, yes) {
86
+ // Without a terminal the prompts get EOF and the process would exit 0 having done
87
+ // nothing — a silent success, which is worse than a hang.
88
+ if (!yes && !process.stdin.isTTY) {
89
+ console.error('init is interactive — run it in a terminal, or pass --yes to accept the top suggestions.');
90
+ return 2;
91
+ }
86
92
  console.log(`Scanning ${roots.length} root(s) for route tables…`);
87
93
  const candidates = await findCandidates(roots);
88
94
  const rl = createInterface({ input: process.stdin, output: process.stdout });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeplink-parity",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Checks that what your mobile app declares about deep links matches what is actually hosted — across iOS and Android.",
5
5
  "type": "module",
6
6
  "bin": {