Skip to content

Commit

Permalink
fix: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Aug 20, 2022
1 parent ed695a6 commit 3f427d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rollout/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ async function npmPublish(pkgJson, options) {
if (publishDir) {
// npm@7 and above require an unambigious path otherwise
// it will assume things like 'lib' or 'dist/esm' are github repos
if (!publishDir.startsWith('.') && !path.isAbsolute(publishDir)) {
publishDir = `./${publishDir}`
let npmDir = publishDir;
if (!npmDir.startsWith('.')) {
npmDir = `./${npmDir}`;
}
args.push(npmDir, '--ignore-scripts');

args.push(publishDir, '--ignore-scripts');

Expand Down

0 comments on commit 3f427d3

Please sign in to comment.