Skip to content

Commit

Permalink
[build-tools] run resolvePackageManager function in correct directo…
Browse files Browse the repository at this point in the history
…ry for custom builds
  • Loading branch information
szdziedzic committed Jul 22, 2024
1 parent baa322a commit b89f2dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function installNodeModules(
env: BuildStepEnv
): Promise<void> {
const { logger } = stepCtx;
const packageManager = resolvePackageManager(stepCtx.global.projectTargetDirectory);
const packageManager = resolvePackageManager(stepCtx.workingDirectory);
const packagerRunDir = findPackagerRootDir(stepCtx.workingDirectory);
let args = ['install'];
if (packageManager === PackageManager.PNPM) {
Expand Down
2 changes: 1 addition & 1 deletion packages/build-tools/src/steps/functions/prebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function createPrebuildBuildFunction(): BuildFunction {
fn: async (stepCtx, { inputs, env }) => {
const { logger } = stepCtx;
const appleTeamId = inputs.apple_team_id.value as string | undefined;
const packageManager = resolvePackageManager(stepCtx.global.projectTargetDirectory);
const packageManager = resolvePackageManager(stepCtx.workingDirectory);

assert(stepCtx.global.staticContext.job, 'Job is not defined');
const job = stepCtx.global.staticContext.job;
Expand Down

0 comments on commit b89f2dc

Please sign in to comment.