cob-cli 2.46.0-beta.3 → 2.46.0-beta.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.
@@ -1,9 +1,5 @@
1
1
  const path = require('path');
2
2
 
3
- if(process.platform === 'win32'){
4
- return;
5
- }
6
-
7
3
  /* Autocomplete Component*/
8
4
  var omelette = require('omelette');
9
5
  const commandStructure = {
@@ -19,11 +15,19 @@ completion.init()
19
15
 
20
16
  // add to system profiles
21
17
  if (~process.argv.indexOf('--setup')) {
18
+ if (process.platform === 'win32') {
19
+ // we exit cleanly so that postinstall completes successfuly
20
+ process.exit(0)
21
+ }
22
22
  console.log("Setting up...")
23
23
  completion.setupShellInitFile()
24
24
  }
25
25
  // remove from system profiles
26
26
  if (~process.argv.indexOf('--cleanup')) {
27
+ if (process.platform === 'win32') {
28
+ // we exit cleanly so that uninstall completes successfuly
29
+ process.exit(0)
30
+ }
27
31
  console.log("Cleaning...")
28
32
  completion.cleanupShellInitFile()
29
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.46.0-beta.3",
3
+ "version": "2.46.0-beta.5",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {