Skip to content

Commit bfcf17b

Browse files
refactor: Change path of publish execution
1 parent 7619dad commit bfcf17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/publish.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default async function (npmrc, { npmPublish, pkgRoot }, pkg, context) {
2222
logger.log(`Publishing version ${version} to npm registry on dist-tag ${distTag}`);
2323
const result = execa(
2424
"npm",
25-
["publish", basePath, "--userconfig", npmrc, "--tag", distTag, "--registry", registry],
26-
{ cwd, env, preferLocal: true }
25+
["publish", "--userconfig", npmrc, "--tag", distTag, "--registry", registry],
26+
{ cwd: basePath, env, preferLocal: true }
2727
);
2828
result.stdout.pipe(stdout, { end: false });
2929
result.stderr.pipe(stderr, { end: false });

0 commit comments

Comments
 (0)