Skip to content

Commit

Permalink
fix api for compatBuild to stop using an any
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jan 21, 2025
1 parent 3d8d493 commit 40aea1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/compat/src/default-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { Variant, EmberAppInstance } from '@embroider/core';
import type { Node } from 'broccoli-node-api';
import writeFile from 'broccoli-file-creator';
import mergeTrees from 'broccoli-merge-trees';
import type Plugin from 'broccoli-plugin';

export interface PipelineOptions<PackagerOptions> extends Options {
packagerOptions?: PackagerOptions;
Expand Down Expand Up @@ -36,7 +37,7 @@ export function prebuild(emberApp: EmberAppInstance, options?: Options): Node {
return mergeTrees([embroiderApp.asStage(addons).tree, writeFile('.stage2-output', () => outputPath)]);
}

export function compatBuild(emberApp: EmberAppInstance, Builder: any, options?: Options): Node {
export function compatBuild(emberApp: EmberAppInstance, Builder: typeof Plugin, options?: Options): Node {
if (process.env.EMBROIDER_PREBUILD) {
return prebuild(emberApp, options);
}
Expand Down

0 comments on commit 40aea1c

Please sign in to comment.