hotcodepush 0.0.0 → 0.0.1

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +53 -0
  3. package/package.json +66 -7
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Genz IT Solutions GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # hotcodepush
2
+
3
+ The HotCodePush CLI: set up, release and manage over-the-air (OTA) updates for React Native, Expo, Capacitor and Cordova apps from the terminal and CI.
4
+
5
+ ## Installation
6
+
7
+ The CLI is not on npm yet. Install the preview build of a commit on `main` as a dev dependency, `<sha>` being the commit's short hash:
8
+
9
+ ```sh
10
+ npm install --save-dev https://pkg.pr.new/hotcodepush-team/cli/hotcodepush@<sha>
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```sh
16
+ npx hotcodepush login
17
+ npx hotcodepush init # wires the SDK and the build step into your project
18
+ npx hotcodepush release create --path dist # uploads the build and releases it to the project's channel
19
+ npx hotcodepush release create --channel staging --rollout-percentage 10
20
+ npx hotcodepush doctor # checks the setup
21
+ npx hotcodepush --help # every command; <command> --help for its flags
22
+ ```
23
+
24
+ Every command takes `--json` for machine-readable output and `--yes` to skip confirmations.
25
+ In CI, set `HOTCODEPUSH_TOKEN` instead of logging in.
26
+
27
+ ### Telemetry
28
+
29
+ After each command, the CLI sends one anonymous event (command name, outcome, duration, version, CI flag, framework) to PostHog, and unexpected errors without their message to Sentry.
30
+ No argument, path or name from your project is ever sent.
31
+ Set `HOTCODEPUSH_TELEMETRY_DISABLED=1` or `DO_NOT_TRACK=1` to turn it off.
32
+
33
+ ## Documentation
34
+
35
+ See [hotcodepush.com/docs/cli](https://hotcodepush.com/docs/cli).
36
+
37
+ ## Development
38
+
39
+ ```sh
40
+ nvm use
41
+ npm ci
42
+ npm run build # compiles src/ into dist/; node dist/index.js --help runs it
43
+ npm test
44
+ npm run lint && npm run typecheck
45
+ npm run fmt # Prettier, run before every commit
46
+ ```
47
+
48
+ Tests live next to the code they test as `*.test.ts`.
49
+ `CLAUDE.md` holds the layout, the rules and how to add a command or a framework.
50
+
51
+ ## License
52
+
53
+ See [LICENSE](./LICENSE).
package/package.json CHANGED
@@ -1,12 +1,71 @@
1
1
  {
2
2
  "name": "hotcodepush",
3
- "version": "0.0.0",
4
- "description": "HotCodePush CLI",
5
- "license": "ISC",
6
- "author": "",
7
- "type": "commonjs",
8
- "main": "index.js",
3
+ "description": "The HotCodePush CLI: set up, release and manage over-the-air (OTA) updates from the terminal and CI",
4
+ "version": "0.0.1",
5
+ "private": false,
6
+ "license": "MIT",
7
+ "homepage": "https://hotcodepush.com",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/hotcodepush-team/cli.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/hotcodepush-team/cli/issues"
14
+ },
15
+ "keywords": [
16
+ "capacitor",
17
+ "cli",
18
+ "cordova",
19
+ "expo",
20
+ "hotcodepush",
21
+ "live-updates",
22
+ "ota-updates",
23
+ "react-native"
24
+ ],
25
+ "type": "module",
26
+ "engines": {
27
+ "node": ">=22"
28
+ },
29
+ "bin": {
30
+ "hotcodepush": "dist/index.js"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "telemetry": {
36
+ "posthogProjectKey": "",
37
+ "sentryDsn": ""
38
+ },
9
39
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
40
+ "build": "tsc --project tsconfig.build.json && node scripts/generate-completion.mjs",
41
+ "fmt": "prettier --write .",
42
+ "lint": "eslint .",
43
+ "test": "vitest run",
44
+ "typecheck": "tsc --noEmit --project tsconfig.json"
45
+ },
46
+ "dependencies": {
47
+ "@clack/prompts": "1.8.1",
48
+ "@hotcodepush/node": "https://pkg.pr.new/hotcodepush-team/hotcodepush-node/@hotcodepush/node@cebeadc",
49
+ "@hotcodepush/protocol": "https://pkg.pr.new/hotcodepush-team/protocol/@hotcodepush/protocol@313a015",
50
+ "@napi-rs/keyring": "2.1.0",
51
+ "better-auth": "1.7.6",
52
+ "fast-xml-parser": "5.11.2",
53
+ "open": "11.0.4",
54
+ "xcode": "3.0.1",
55
+ "zod": "4.6.7",
56
+ "zodline": "0.3.1"
57
+ },
58
+ "devDependencies": {
59
+ "@eslint/js": "10.0.1",
60
+ "@types/node": "24.19.0",
61
+ "@types/xcode": "3.0.0",
62
+ "eslint": "10.11.0",
63
+ "eslint-import-resolver-typescript": "4.4.5",
64
+ "eslint-plugin-import-x": "4.17.1",
65
+ "pkg-pr-new": "0.0.88",
66
+ "prettier": "3.9.8",
67
+ "typescript": "5.9.3",
68
+ "typescript-eslint": "8.70.0",
69
+ "vitest": "5.0.1"
11
70
  }
12
71
  }