code-push-itspar 1.0.0 → 1.0.3

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/README.md CHANGED
@@ -1,22 +1,36 @@
1
1
  # CodePush CLI
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/code-push-itspar.svg)](https://www.npmjs.com/package/code-push-itspar)
4
+ [![npm downloads](https://img.shields.io/npm/dm/code-push-itspar.svg)](https://www.npmjs.com/package/code-push-itspar)
5
+
3
6
  The **CodePush CLI** is a Node.js application that allows users to deploy and manage over-the-air updates for React Native applications.
4
7
 
8
+ 📦 **NPM Package:** [https://www.npmjs.com/package/code-push-itspar](https://www.npmjs.com/package/code-push-itspar)
9
+
5
10
  ## Installation & Usage
6
11
 
7
- ### Global Installation
12
+ ### Global Installation (recommended)
8
13
  ```bash
9
14
  npm install -g code-push-itspar
10
15
  ```
11
16
 
12
- Or using yarn:
17
+ After global installation, you can use the CLI directly:
18
+ ```bash
19
+ code-push-itspar <command>
20
+ ```
21
+
22
+ ### Yarn Global Installation (optional)
13
23
  ```bash
14
24
  yarn global add code-push-itspar
15
25
  ```
16
26
 
17
- After global installation, you can use the CLI directly:
27
+ If `code-push-itspar` is not found after a yarn global install, your shell PATH
28
+ does not include Yarn’s global bin. Use npm global install (recommended) or add
29
+ Yarn’s global bin to PATH.
30
+
31
+ **Troubleshooting:** If you get a "permission denied" error on macOS/Linux, run:
18
32
  ```bash
19
- code-push-itspar <command>
33
+ chmod +x $(npm root -g)/code-push-itspar/bin/script/cli.js
20
34
  ```
21
35
 
22
36
  ### Project Installation
@@ -49,7 +63,7 @@ Most commands require authentication. You'll need an access key and server URL t
49
63
  code-push-itspar login --accessKey <your-access-key> <server-url>
50
64
 
51
65
  # Example
52
- code-push-itspar login --accessKey abc123xyz https://codepush.jaswantdhayal.com
66
+ code-push-itspar login --accessKey abc123xyz https://server.codepush.online
53
67
 
54
68
  # Check login status
55
69
  code-push-itspar whoami
@@ -28,7 +28,7 @@ const xcode = require("xcode");
28
28
  const react_native_utils_1 = require("./react-native-utils");
29
29
  const file_utils_1 = require("./utils/file-utils");
30
30
  const config_constants_1 = require("./utils/config.constants");
31
- const configFilePath = path.join(process.env.LOCALAPPDATA || process.env.HOME, ".code-push.config");
31
+ const configFilePath = path.join(process.env.LOCALAPPDATA || process.env.HOME, ".itspar-code-push.config");
32
32
  const emailValidator = require("email-validator");
33
33
  const packageJson = require("../../package.json");
34
34
  const parseXml = Q.denodeify(require("xml2js").parseString);
package/bsdiff/bsdiff43 CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-push-itspar",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Management CLI for CodePush - deploy mobile app updates over-the-air",
5
5
  "main": "./script/cli.js",
6
6
  "scripts": {
@@ -15,12 +15,12 @@
15
15
  "exec": "npm run build && npm run build && npm install -g",
16
16
  "prepare": "npm run build",
17
17
  "prepack": "npm run build",
18
+ "postinstall": "chmod +x ./bin/script/cli.js || true",
18
19
  "test": "echo \"No tests specified\" && exit 0",
19
20
  "local:install": "npm run build && npm install -g",
20
21
  "local:link": "npm run build && npm link"
21
22
  },
22
23
  "bin": {
23
- "codepush": "./bin/script/cli.js",
24
24
  "code-push-itspar": "./bin/script/cli.js"
25
25
  },
26
26
  "files": [