Skip to content

Commit

Permalink
Fix type for generatePackageJson
Browse files Browse the repository at this point in the history
  • Loading branch information
ericanderson committed Dec 6, 2024
1 parent 27b387a commit a53265c
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ export async function generatePackageJson(options: {
{ dependencyName: string; dependencyVersion: string }
>;
beta: boolean;
}): Promise<void> {
}): Promise<
{
name: string;
version: string;
dependencies: { [dependencyName: string]: string } | undefined;
peerDependencies: { [dependencyName: string]: string } | undefined;
type: string;
}
> {
const packageDeps = constructDependencies(options.dependencies);
const packagePeerDeps = constructDependencies(options.peerDependencies);

Expand Down

0 comments on commit a53265c

Please sign in to comment.