Skip to content

Commit

Permalink
chore: fix publish on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 24, 2020
1 parent a3e3b4f commit 3ed686f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/get-unowned-packages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ module.exports = async function getUnownedPackages({
// set registry because yarn run hijacks registry
if (!user) {
user = await execP(
`node_modules/.bin/cross-env npm_config_username="" npm whoami --registry https://registry.npmjs.org`
`"node_modules/.bin/cross-env" npm_config_username="" npm whoami --registry https://registry.npmjs.org`
)
.then(({ stdout }) => stdout.trim())
.catch(() => {
.catch(err => {
throw new Error(`You are not logged-in`)
})
}
Expand Down

0 comments on commit 3ed686f

Please sign in to comment.