Skip to content

Commit

Permalink
fix: cwd on pretarball
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 30, 2022
1 parent aa9359b commit 7d2019f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tarballs/build.ts
Expand Up @@ -82,8 +82,8 @@ export async function build(c: BuildConfig, options: {
const yarn = fs.existsSync(path.join(yarnRoot, 'yarn.lock'))
if (pjson.scripts.pretarball) {
yarn ?
await exec('yarn run pretarball') :
await exec('npm run pretarball', {})
await exec('yarn run pretarball', {cwd: c.workspace()}) :
await exec('npm run pretarball', {cwd: c.workspace()})
}
}

Expand Down

0 comments on commit 7d2019f

Please sign in to comment.