@hot-updater/bare 1.0.0-rc.0 → 1.0.0-rc.2
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/dist/index.cjs +173 -119
- package/dist/index.d.cts +2 -9
- package/dist/index.d.mts +2 -9
- package/dist/index.mjs +168 -114
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BasePluginArgs, BuildPlugin, BuildPluginConfig } from "@hot-updater/plugin-core";
|
|
2
|
-
|
|
3
2
|
//#region src/bare.d.ts
|
|
4
3
|
interface BarePluginConfig extends BuildPluginConfig {
|
|
5
4
|
/**
|
|
@@ -25,9 +24,7 @@ interface BarePluginConfig extends BuildPluginConfig {
|
|
|
25
24
|
*/
|
|
26
25
|
resetCache?: boolean;
|
|
27
26
|
}
|
|
28
|
-
declare const bare: (config: BarePluginConfig) => ({
|
|
29
|
-
cwd
|
|
30
|
-
}: BasePluginArgs) => BuildPlugin;
|
|
27
|
+
declare const bare: (config: BarePluginConfig) => ({ cwd }: BasePluginArgs) => BuildPlugin;
|
|
31
28
|
//#endregion
|
|
32
29
|
//#region src/hermes.d.ts
|
|
33
30
|
/**
|
|
@@ -47,11 +44,7 @@ declare function getHermesCommand(cwd: string): Promise<string>;
|
|
|
47
44
|
* @param sourcemap - (Optional) Final sourcemap file path
|
|
48
45
|
* @returns The full path to the compiled HBC file
|
|
49
46
|
*/
|
|
50
|
-
declare function compileHermes({
|
|
51
|
-
cwd,
|
|
52
|
-
sourcemap,
|
|
53
|
-
inputJsFile
|
|
54
|
-
}: {
|
|
47
|
+
declare function compileHermes({ cwd, sourcemap, inputJsFile }: {
|
|
55
48
|
cwd: string;
|
|
56
49
|
sourcemap?: boolean;
|
|
57
50
|
inputJsFile: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BasePluginArgs, BuildPlugin, BuildPluginConfig } from "@hot-updater/plugin-core";
|
|
2
|
-
|
|
3
2
|
//#region src/bare.d.ts
|
|
4
3
|
interface BarePluginConfig extends BuildPluginConfig {
|
|
5
4
|
/**
|
|
@@ -25,9 +24,7 @@ interface BarePluginConfig extends BuildPluginConfig {
|
|
|
25
24
|
*/
|
|
26
25
|
resetCache?: boolean;
|
|
27
26
|
}
|
|
28
|
-
declare const bare: (config: BarePluginConfig) => ({
|
|
29
|
-
cwd
|
|
30
|
-
}: BasePluginArgs) => BuildPlugin;
|
|
27
|
+
declare const bare: (config: BarePluginConfig) => ({ cwd }: BasePluginArgs) => BuildPlugin;
|
|
31
28
|
//#endregion
|
|
32
29
|
//#region src/hermes.d.ts
|
|
33
30
|
/**
|
|
@@ -47,11 +44,7 @@ declare function getHermesCommand(cwd: string): Promise<string>;
|
|
|
47
44
|
* @param sourcemap - (Optional) Final sourcemap file path
|
|
48
45
|
* @returns The full path to the compiled HBC file
|
|
49
46
|
*/
|
|
50
|
-
declare function compileHermes({
|
|
51
|
-
cwd,
|
|
52
|
-
sourcemap,
|
|
53
|
-
inputJsFile
|
|
54
|
-
}: {
|
|
47
|
+
declare function compileHermes({ cwd, sourcemap, inputJsFile }: {
|
|
55
48
|
cwd: string;
|
|
56
49
|
sourcemap?: boolean;
|
|
57
50
|
inputJsFile: string;
|