@hot-updater/bare 0.16.7-0 → 0.18.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/bare",
3
3
  "type": "module",
4
- "version": "0.16.7-0",
4
+ "version": "0.18.0",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "package.json"
22
22
  ],
23
23
  "dependencies": {
24
- "@hot-updater/plugin-core": "0.16.7-0"
24
+ "@hot-updater/plugin-core": "0.18.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.8.7",
@@ -29,7 +29,7 @@
29
29
  "uuidv7": "^1.0.2"
30
30
  },
31
31
  "scripts": {
32
- "build": "rslib build",
32
+ "build": "tsdown",
33
33
  "test:type": "tsc --noEmit"
34
34
  }
35
35
  }
package/dist/bare.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { type BasePluginArgs, type BuildPlugin, type BuildPluginConfig } from "@hot-updater/plugin-core";
2
- export interface BarePluginConfig extends BuildPluginConfig {
3
- /**
4
- * @default "index.js"
5
- * The entry file to bundle.
6
- */
7
- entryFile?: string;
8
- /**
9
- * @default false
10
- * Whether to generate sourcemap for the bundle.
11
- */
12
- sourcemap?: boolean;
13
- /**
14
- * Whether to use Hermes to compile the bundle
15
- * Since React Native v0.70+, Hermes is enabled by default, so it's recommended to enable it.
16
- * @link https://reactnative.dev/docs/hermes
17
- * @recommended true
18
- */
19
- enableHermes: boolean;
20
- }
21
- export declare const bare: (config: BarePluginConfig) => ({ cwd }: BasePluginArgs) => BuildPlugin;
package/dist/hermes.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /**
2
- * Finds the Hermes command.
3
- * If Hermes is bundled with react-native, returns the hermesc path.
4
- * Otherwise, returns the path from node_modules/hermes-engine or hermesvm.
5
- *
6
- * @returns Full path to the Hermes executable
7
- */
8
- export declare function getHermesCommand(cwd: string): Promise<string>;
9
- /**
10
- * Compiles a JS bundle into an HBC file using the Hermes compiler,
11
- * and merges the source maps if enabled.
12
- *
13
- * @param cwd - The current working directory
14
- * @param inputJsFile - Path to the input JS file
15
- * @param sourcemap - (Optional) Final sourcemap file path
16
- * @returns The full path to the compiled HBC file
17
- */
18
- export declare function compileHermes({ cwd, sourcemap, inputJsFile, }: {
19
- cwd: string;
20
- sourcemap?: boolean;
21
- inputJsFile: string;
22
- }): Promise<{
23
- hermesVersion: string;
24
- }>;