Skip to content

Commit

Permalink
Use init cwd when searching for package
Browse files Browse the repository at this point in the history
  • Loading branch information
tscpp committed Jun 14, 2022
1 parent 4bc6dc9 commit 10c4c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function get_input_version() {
if (process.env.PROTOC_GEN_GRPC_WEB_VERSION)
return process.env.PROTOC_GEN_GRPC_WEB_VERSION;

const pkg = await find_package(process.cwd());
const pkg = await find_package(process.env.INIT_CWD ?? process.cwd());
if (pkg?.config?.["protoc-gen-grpc-web-version"])
return pkg.config["protoc-gen-grpc-web-version"];

Expand Down

0 comments on commit 10c4c7f

Please sign in to comment.