Skip to content

Commit 10c4c7f

Browse files
committed
Use init cwd when searching for package
1 parent 4bc6dc9 commit 10c4c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function get_input_version() {
118118
if (process.env.PROTOC_GEN_GRPC_WEB_VERSION)
119119
return process.env.PROTOC_GEN_GRPC_WEB_VERSION;
120120

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

0 commit comments

Comments
 (0)