@hot-updater/one 0.0.0-stage → 1.2.0-rc.25
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/LICENSE +33 -0
- package/dist/index.cjs +6372 -0
- package/dist/index.d.cts +30 -0
- package/dist/index.d.mts +30 -0
- package/dist/index.mjs +6386 -0
- package/dist/patches.cjs +192 -0
- package/dist/patches.d.cts +49 -0
- package/dist/patches.d.mts +49 -0
- package/dist/patches.mjs +188 -0
- package/dist/tag-DfkRm14L.mjs +16 -0
- package/dist/tag-Tofi6ZMX.cjs +62 -0
- package/package.json +76 -3
- package/README.md +0 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, NativeFingerprintOptions } from "@hot-updater/plugin-core";
|
|
2
|
+
//#region src/one.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* One's native fingerprint: bare's interface fingerprint, since One bundles
|
|
5
|
+
* and links like bare, plus the app's own Swift and Kotlin sources. It reads
|
|
6
|
+
* no file `one prebuild` generates, so `fingerprint create` before prebuild
|
|
7
|
+
* and the native build after it compute the same one. A native build computes
|
|
8
|
+
* it from the inputs fingerprint.json records.
|
|
9
|
+
*/
|
|
10
|
+
declare const oneFingerprint: (cwd: string, options: NativeFingerprintOptions) => Promise<import("@hot-updater/plugin-core").NativeFingerprint>;
|
|
11
|
+
interface OneAdapterConfig extends BuildAdapterConfig {
|
|
12
|
+
/**
|
|
13
|
+
* @default false
|
|
14
|
+
* Whether to generate sourcemap for the bundle.
|
|
15
|
+
*/
|
|
16
|
+
sourcemap?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @default true
|
|
19
|
+
* Whether to reset One's transform cache before bundling.
|
|
20
|
+
*/
|
|
21
|
+
resetCache?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Builds a One app's bundle with `react-native bundle`, which One's
|
|
25
|
+
* `react-native.config.cjs` routes through its own bundler, and compiles it
|
|
26
|
+
* with Hermes, which One apps always use.
|
|
27
|
+
*/
|
|
28
|
+
declare const one: (config?: OneAdapterConfig) => ({ cwd }: BuildAdapterArgs) => Promise<BuildAdapter>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { type OneAdapterConfig, one, oneFingerprint };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, NativeFingerprintOptions } from "@hot-updater/plugin-core";
|
|
2
|
+
//#region src/one.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* One's native fingerprint: bare's interface fingerprint, since One bundles
|
|
5
|
+
* and links like bare, plus the app's own Swift and Kotlin sources. It reads
|
|
6
|
+
* no file `one prebuild` generates, so `fingerprint create` before prebuild
|
|
7
|
+
* and the native build after it compute the same one. A native build computes
|
|
8
|
+
* it from the inputs fingerprint.json records.
|
|
9
|
+
*/
|
|
10
|
+
declare const oneFingerprint: (cwd: string, options: NativeFingerprintOptions) => Promise<import("@hot-updater/plugin-core").NativeFingerprint>;
|
|
11
|
+
interface OneAdapterConfig extends BuildAdapterConfig {
|
|
12
|
+
/**
|
|
13
|
+
* @default false
|
|
14
|
+
* Whether to generate sourcemap for the bundle.
|
|
15
|
+
*/
|
|
16
|
+
sourcemap?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @default true
|
|
19
|
+
* Whether to reset One's transform cache before bundling.
|
|
20
|
+
*/
|
|
21
|
+
resetCache?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Builds a One app's bundle with `react-native bundle`, which One's
|
|
25
|
+
* `react-native.config.cjs` routes through its own bundler, and compiles it
|
|
26
|
+
* with Hermes, which One apps always use.
|
|
27
|
+
*/
|
|
28
|
+
declare const one: (config?: OneAdapterConfig) => ({ cwd }: BuildAdapterArgs) => Promise<BuildAdapter>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { type OneAdapterConfig, one, oneFingerprint };
|