cob-cli 2.46.0-beta.4 → 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.
@@ -13,15 +13,21 @@ const commandStructure = {
13
13
  const completion = omelette('cob-cli').tree(commandStructure)
14
14
  completion.init()
15
15
 
16
- if (process.platform !== 'win32') {
17
- // add to system profiles
18
- if (~process.argv.indexOf('--setup')) {
19
- console.log("Setting up...")
20
- completion.setupShellInitFile()
21
- }
22
- // remove from system profiles
23
- if (~process.argv.indexOf('--cleanup')) {
24
- console.log("Cleaning...")
25
- completion.cleanupShellInitFile()
26
- }
16
+ // add to system profiles
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
+ console.log("Setting up...")
23
+ completion.setupShellInitFile()
24
+ }
25
+ // remove from system profiles
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
+ }
31
+ console.log("Cleaning...")
32
+ completion.cleanupShellInitFile()
27
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.46.0-beta.4",
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": {