plugins 1.2.3 → 1.2.4
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/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1264,11 +1264,15 @@ function resolveSource(source) {
|
|
|
1264
1264
|
function readLine(prompt) {
|
|
1265
1265
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
1266
1266
|
return new Promise((resolve2) => {
|
|
1267
|
+
let answered = false;
|
|
1267
1268
|
rl.on("close", () => {
|
|
1268
|
-
|
|
1269
|
-
|
|
1269
|
+
if (!answered) {
|
|
1270
|
+
process.stdout.write("\n");
|
|
1271
|
+
process.exit(0);
|
|
1272
|
+
}
|
|
1270
1273
|
});
|
|
1271
1274
|
rl.question(prompt, (answer) => {
|
|
1275
|
+
answered = true;
|
|
1272
1276
|
rl.close();
|
|
1273
1277
|
if (!process.stdin.isTTY) process.stdout.write("\n");
|
|
1274
1278
|
resolve2(answer);
|