npm package diff

Package: @forge/bundler

Versions: 4.20.1-next.6 - 4.20.1-next.7

File: package/out/types.d.ts

Index: package/out/types.d.ts
===================================================================
--- package/out/types.d.ts
+++ package/out/types.d.ts
@@ -1,17 +1,42 @@
-import { Logger } from '@forge/cli-shared';
+import { Logger, UserError } from '@forge/cli-shared';
 import { Translations } from '@forge/manifest';
-import { EntryPoint } from './config/common';
 export declare type BundlerMetadata = {
     modules?: string[];
     nodeRuntimeVersion?: string;
 };
 export interface BundlerOutput {
     outputDir: string;
     metadata?: BundlerMetadata;
 }
-export declare type BundleLogger = Pick<Logger, 'info' | 'warn'>;
-export declare type Bundler = (logger: BundleLogger, appDirectory: string, endpointPath: EntryPoint[], i18nConfig?: Translations) => Promise<BundlerOutput>;
+export declare type BundleLogger = Pick<Logger, 'trace' | 'debug' | 'info' | 'warn'>;
+export declare type BundlerWatchMode = 'watch' | 'debug';
+export declare type EntryPoint = {
+    name: string;
+    path: string;
+};
+export declare type BundlerArgs = {
+    appDirectory: string;
+    entryPoints: EntryPoint[];
+    i18nConfig?: Translations;
+    watchMode?: BundlerWatchMode;
+};
+export declare type BundlerWatchArgs = BundlerArgs & {
+    successMessage: string;
+};
+export declare type BundlerWatch = {
+    onBuildWillStart: () => Promise<void>;
+    onBuildFinished: ((err: null, result: BundlerOutput) => Promise<void>) & ((err: Error) => Promise<void>);
+};
 export interface WatcherMonitor {
     stop(): void;
 }
+export declare type BundlerWatchOutput = WatcherMonitor & {
+    result: BundlerOutput;
+};
+export declare type Bundler = {
+    bundle(args: BundlerArgs): Promise<BundlerOutput>;
+    watch(args: BundlerWatchArgs, watch: BundlerWatch): Promise<BundlerWatchOutput>;
+};
+export declare class BundlerError extends UserError {
+}
 //# sourceMappingURL=types.d.ts.map
\ No newline at end of file