Skip to content

Commit

Permalink
feat(standalone): api-based standaloneRepository database plugin (#83)
Browse files Browse the repository at this point in the history
* feat: self hosted api plugin

* fix: return type of bundle

* feat: modular endpoints

* fix: use the lastChangedIds approach to upsert

* fix: lint

* feat: add test code

* fix: deprecated setBundles and test

---------

Co-authored-by: gronxb <[email protected]>
  • Loading branch information
regalstreak and gronxb authored Feb 20, 2025
1 parent be5ac79 commit c2dd276
Show file tree
Hide file tree
Showing 7 changed files with 1,116 additions and 18 deletions.
55 changes: 55 additions & 0 deletions plugins/standalone/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "@hot-updater/standalone",
"version": "0.10.1",
"type": "module",
"description": "React Native OTA solution for self-hosted",
"sideEffects": false,
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"files": [
"dist",
"package.json"
],
"keywords": [
"react-native",
"react-native-code-push",
"code-push",
"eas",
"eas-update",
"expo",
"expo-update",
"self-hosted"
],
"license": "MIT",
"scripts": {
"build": "rslib build",
"test:type": "tsc --noEmit"
},
"repository": "https://github.com/gronxb/hot-updater",
"author": "gronxb <[email protected]> (https://github.com/gronxb)",
"bugs": {
"url": "https://github.com/gronxb/hot-updater/issues"
},
"homepage": "https://github.com/gronxb/hot-updater#readme",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@hot-updater/core": "0.10.1",
"@hot-updater/plugin-core": "0.10.1"
},
"devDependencies": {
"@types/node": "^20.9.4",
"@types/semver": "^7.5.8",
"msw": "^2.7.0",
"semver": "^7.6.3",
"vitest": "^3.0.6"
}
}
14 changes: 14 additions & 0 deletions plugins/standalone/rslib.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from "@rslib/core";

export default defineConfig({
lib: [
{
format: "esm",
dts: true,
},
{
format: "cjs",
dts: true,
},
],
});
1 change: 1 addition & 0 deletions plugins/standalone/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./standaloneRepository";
Loading

0 comments on commit c2dd276

Please sign in to comment.