@scalebun/react-native 1.6.3 → 1.6.4
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/bin/scalebun.js +30 -25
- package/dist/scalebun.full.js +1 -1
- package/dist/scalebun.slim.js +1 -1
- package/lib/commonjs/core/constants/version.js +1 -1
- package/lib/module/core/constants/version.js +1 -1
- package/lib/typescript/core/constants/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/core/constants/version.ts +1 -1
package/bin/scalebun.js
CHANGED
|
@@ -899,38 +899,43 @@ function delegateToOtaCli(argv) {
|
|
|
899
899
|
}
|
|
900
900
|
|
|
901
901
|
/**
|
|
902
|
-
* Print the full command surface
|
|
903
|
-
* directly, followed by the complete @scalebun/cli command tree.
|
|
902
|
+
* Print the full, guided command surface.
|
|
904
903
|
*
|
|
905
|
-
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
908
|
-
*
|
|
904
|
+
* Delegates to the bundled @scalebun/cli's own banner (invoked with no args),
|
|
905
|
+
* which renders the "publish your first OTA update" getting-started flow,
|
|
906
|
+
* project setup (doctor + init ios/android), and every OTA subcommand — a single
|
|
907
|
+
* source of truth that cannot drift. `--help` on the CLI would only list
|
|
908
|
+
* top-level groups (so `ota generate-key-pair` etc. would stay hidden), which is
|
|
909
|
+
* exactly the discoverability gap this avoids. When the CLI cannot be resolved
|
|
910
|
+
* (should not happen — it is a dependency) we fall back to a static list.
|
|
909
911
|
*/
|
|
910
912
|
function printFullHelp() {
|
|
913
|
+
const cliEntry = resolveOtaCli();
|
|
914
|
+
if (cliEntry) {
|
|
915
|
+
// No args → the CLI prints its banner + status + full guided command list.
|
|
916
|
+
const { spawnSync } = require('child_process');
|
|
917
|
+
const res = spawnSync(process.execPath, [cliEntry], { stdio: 'inherit' });
|
|
918
|
+
process.exit(res.status ?? 0);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
// Fallback: CLI unresolvable — show at least the setup commands + how to fix.
|
|
911
922
|
console.log('');
|
|
912
|
-
console.log(paint('ScaleBun
|
|
923
|
+
console.log(paint('ScaleBun CLI', C.bold));
|
|
913
924
|
console.log('');
|
|
914
|
-
console.log(paint('
|
|
915
|
-
console.log(' npx scalebun
|
|
916
|
-
console.log(' npx scalebun
|
|
917
|
-
console.log(' npx scalebun init android
|
|
925
|
+
console.log(paint('Publish your first OTA update:', C.bold));
|
|
926
|
+
console.log(' 1. npx scalebun login Authenticate (paste a token)');
|
|
927
|
+
console.log(' 2. npx scalebun apps Find your --app-id');
|
|
928
|
+
console.log(' 3. npx scalebun init android | init ios Wire the native app for OTA, then rebuild');
|
|
929
|
+
console.log(' 4. npx scalebun ota publish --app-id <id> --hermes');
|
|
930
|
+
console.log('');
|
|
931
|
+
console.log(paint('Project setup:', C.bold));
|
|
932
|
+
console.log(' npx scalebun doctor Check the project is OTA-ready');
|
|
933
|
+
console.log(' npx scalebun init ios Wire the iOS AppDelegate for OTA + Direct APNs');
|
|
934
|
+
console.log(' npx scalebun init android Wire the Android MainApplication for OTA');
|
|
918
935
|
console.log(paint(' add --check to verify (exit 1 if missing) or --dry-run to preview', C.dim));
|
|
919
936
|
console.log('');
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
if (!cliEntry) {
|
|
923
|
-
console.log(paint('OTA & account commands:', C.bold));
|
|
924
|
-
console.log(' Provided by @scalebun/cli (login, quickstart, apps, ota publish,');
|
|
925
|
-
console.log(' releases, rollout…). It ships with this package but could not be');
|
|
926
|
-
console.log(' resolved — run `npm install`, then `npx scalebun --help` again.');
|
|
927
|
-
console.log('');
|
|
928
|
-
return;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
console.log(paint('OTA & account commands (from @scalebun/cli):', C.bold));
|
|
932
|
-
const { spawnSync } = require('child_process');
|
|
933
|
-
spawnSync(process.execPath, [cliEntry, '--help'], { stdio: 'inherit' });
|
|
937
|
+
console.log(paint('The OTA & account commands come from @scalebun/cli, which ships with this', C.dim));
|
|
938
|
+
console.log(paint('package but could not be resolved — run `npm install`, then retry.', C.dim));
|
|
934
939
|
console.log('');
|
|
935
940
|
}
|
|
936
941
|
|
package/dist/scalebun.full.js
CHANGED
package/dist/scalebun.slim.js
CHANGED
|
@@ -9,5 +9,5 @@ exports.SDK_VERSION = void 0;
|
|
|
9
9
|
* can attribute telemetry to the SDK build that produced it.
|
|
10
10
|
* Keep in sync with package.json "version".
|
|
11
11
|
*/
|
|
12
|
-
const SDK_VERSION = exports.SDK_VERSION = '1.6.
|
|
12
|
+
const SDK_VERSION = exports.SDK_VERSION = '1.6.4';
|
|
13
13
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalebun/react-native",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Production-grade React Native SDK for ScaleBun",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@babel/runtime": "^7.25.0",
|
|
106
106
|
"@jridgewell/sourcemap-codec": "1.5.5",
|
|
107
107
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
108
|
-
"@scalebun/cli": "^1.6.
|
|
108
|
+
"@scalebun/cli": "^1.6.4"
|
|
109
109
|
},
|
|
110
110
|
"codegenConfig": {
|
|
111
111
|
"name": "ScaleBunSpec",
|