@vlandoss/localproxy 0.0.4 → 0.0.5-git-4100404.0

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/localproxy",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-git-4100404.0",
4
4
  "description": "Simple local development proxy automation",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/localproxy#readme",
6
6
  "bugs": {
package/src/main.ts CHANGED
@@ -45,7 +45,11 @@ export async function main(options: ProgramOptions) {
45
45
  const program = await createProgram(options);
46
46
  await program.parseAsync();
47
47
  } catch (error) {
48
- logger.error("Cannot run main successfully", error);
49
- process.exit(1);
48
+ if (error instanceof Error && error.name === "ExitPromptError") {
49
+ logger.success("👋 cancelled, until next time!");
50
+ } else {
51
+ logger.error(error);
52
+ process.exit(1);
53
+ }
50
54
  }
51
55
  }