Skip to content

Commit

Permalink
Merge pull request #1 from memobank/patch-cwd-publish
Browse files Browse the repository at this point in the history
fix(publish): fix wrong cwd when used in monorepo
  • Loading branch information
juherpin committed Nov 22, 2023
2 parents df11027 + 00fe258 commit f86fd0c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ module.exports = async (npmrc, {npmPublish, pkgRoot}, pkg, context) => {
logger.log(`Publishing version ${version} to npm registry on dist-tag ${distTag}`);
const result = execa(
'npm',
['publish', basePath, '--userconfig', npmrc, '--tag', distTag, '--registry', registry],
{cwd, env}
['publish', '--userconfig', npmrc, '--tag', distTag, '--registry', registry],
{
cwd: basePath,
env
}
);
result.stdout.pipe(stdout, {end: false});
result.stderr.pipe(stderr, {end: false});
Expand Down

0 comments on commit f86fd0c

Please sign in to comment.