Skip to content

Commit

Permalink
fix: Fix version loading in new dist layout. (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Aug 16, 2024
1 parent 5e058bb commit f1c23d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export async function getVersions(request: CodeGeneratorRequest) {
protocVersion = `v${major}.${minor}.${patch}`;
}

const path: string = "../package.json";
const path: string = "../../package.json";
const packageJson = await import(path);
const tsProtoVersion = `v${packageJson?.version ?? "unknown"}`;

Expand Down

0 comments on commit f1c23d2

Please sign in to comment.