npm package diff
Package: @forge/bundler
Versions: 4.20.1-next.6 - 4.20.1-next.7
File: package/out/config/common.d.ts
Index: package/out/config/common.d.ts
===================================================================
--- package/out/config/common.d.ts
+++ package/out/config/common.d.ts
@@ -1,22 +1,13 @@
/// <reference types="node" />
import { Configuration as WebpackConfig, ModuleOptions } from 'webpack';
import { Handler } from '@forge/cli-shared';
import { Translations } from '@forge/manifest';
-export interface ConfigBuilder {
- isWatchMode: boolean;
- isDebugMode?: boolean;
- appDirectory: string;
- outputDir: string;
-}
-export declare type EntryPoint = {
- name: string;
- path: string;
-};
+import { BundlerArgs, EntryPoint } from '../types';
export declare function getEntryPoints(handlers: Handler[]): EntryPoint[];
export declare const resolveModulePath: (moduleName: string) => string;
export declare function resolveStubPath(stubName: string): string;
-export declare const getDevToolConfig: (config: ConfigBuilder) => string;
+export declare const getDevToolConfig: ({ watchMode }: Pick<BundlerArgs, 'watchMode'>) => string;
export declare type RequiredFields<T, F extends keyof T> = T & Required<Pick<T, F>>;
export declare type CommonOutputOptions = RequiredFields<Required<WebpackConfig>['output'], 'path'>;
declare type CommonModuleOptions = RequiredFields<ModuleOptions, 'rules'>;
export declare type WebpackEntries = Record<string, string>;
@@ -32,7 +23,7 @@
};
}) => string;
};
};
-export declare const getCommonWebpackConfig: (entrypoints: EntryPoint[], config: ConfigBuilder) => CommonWebpackConfig;
+export declare const getCommonWebpackConfig: (args: BundlerArgs) => CommonWebpackConfig;
export {};
//# sourceMappingURL=common.d.ts.map
\ No newline at end of file