@sandro-sikic/maker 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -100,6 +100,8 @@ function run(command, opts = {}) {
100
100
  * - Returns a disposer function that removes the listener.
101
101
  */
102
102
  function onExit(cb) {
103
+ exiting = ora('Gracefully shutting down...').start();
104
+
103
105
  if (typeof cb !== 'function') {
104
106
  throw new TypeError('onExit requires a callback function');
105
107
  }
@@ -114,6 +116,7 @@ function onExit(cb) {
114
116
  console.error('onExit callback error:', err);
115
117
  } finally {
116
118
  // ensure we exit after callback finishes (0 = success)
119
+ exiting.stop();
117
120
  process.exit(0);
118
121
  }
119
122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sandro-sikic/maker",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A library to create dev cli",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",