hot-updater 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.
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "hot-updater",
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "bin": {
6
+ "hot-updater": "./lib/index.cjs"
7
+ },
8
+ "description": "React Native OTA solution for self-hosted",
9
+ "main": "index.js",
10
+ "license": "MIT",
11
+ "repository": "https://github.com/gronxb/hot-updater",
12
+ "author": "gronxb <gron1gh1@gmail.com> (https://github.com/gronxb)",
13
+ "bugs": {
14
+ "url": "https://github.com/gronxb/hot-updater/issues"
15
+ },
16
+ "homepage": "https://github.com/gronxb/hot-updater#readme",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "dependencies": {
21
+ "@aws-sdk/client-s3": "^3.441.0",
22
+ "@aws-sdk/lib-storage": "^3.441.0",
23
+ "commander": "^11.1.0",
24
+ "lilconfig": "^2.1.0",
25
+ "picocolors": "^1.0.0",
26
+ "prompts": "^2.4.2",
27
+ "workspace-tools": "^0.36.3",
28
+ "@hot-updater/node": "^0.0.4"
29
+ },
30
+ "scripts": {
31
+ "build": "esbuild src/index.ts --bundle --platform=node --outfile=lib/index.cjs"
32
+ }
33
+ }
@@ -0,0 +1,3 @@
1
+ export const deploy = () => {
2
+ console.log("WIP");
3
+ };
package/src/cwd.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { findPackageRoot } from "workspace-tools";
2
+
3
+ // biome-ignore lint/style/noNonNullAssertion: <explanation>
4
+ export const cwd = () => findPackageRoot(process.cwd())!;
package/src/index.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { deploy } from "@/commands/deploy";
2
+ import { version } from "@/package.json";
3
+ import { printLogo } from "@/utils/printLogo";
4
+ import { Command } from "commander";
5
+
6
+ printLogo();
7
+
8
+ const program = new Command();
9
+ program
10
+ .name("hot-updater")
11
+ .description("CLI to React Native OTA solution for self-hosted")
12
+ .version(version);
13
+
14
+ program
15
+ .command("deploy")
16
+ .description("deploy a new version")
17
+ .action(() => {
18
+ deploy();
19
+ });
20
+
21
+ program.parse();
@@ -0,0 +1,14 @@
1
+ import pc from "picocolors";
2
+
3
+ export const logoString = [
4
+ " __ __ __ __ __ __ __ ",
5
+ " / / / /___ / /_ / / / /___ ____/ /___ _/ /____ _____",
6
+ " / /_/ / __ \\/ __/ / / / / __ \\/ __ / __ `/ __/ _ \\/ ___/",
7
+ " / __ / /_/ / /_ / /_/ / /_/ / /_/ / /_/ / /_/ __/ / ",
8
+ "/_/ /_/\\____/\\__/ \\____/ .___/\\__,_/\\__,_/\\__/\\___/_/ ",
9
+ " /_/ ",
10
+ ].join("\n");
11
+
12
+ export const printLogo = () => {
13
+ console.log(pc.blue(logoString));
14
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "paths": {
6
+ "@/package.json": ["package.json"],
7
+ "@/*": ["src/*"]
8
+ }
9
+ },
10
+ "include": ["src", "hot-updater.d.ts"]
11
+ }