fix: nuxt-edge publish path

This commit is contained in:
Clark Du 2018-07-29 19:35:18 +01:00
parent 46de9625e0
commit 0ac8e74bd5
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -56,7 +56,9 @@ class NuxtEdgePublisher {
console.log(`publishing ${p.name}@${p.version} with tag ${tag}`) console.log(`publishing ${p.name}@${p.version} with tag ${tag}`)
// Do publish // Do publish
const { status, output } = spawnSync('npm', `publish --tag ${tag}`.split(' ')) const { status, output } = spawnSync('npm', `publish --tag ${tag}`.split(' '), {
cwd: resolve(__dirname, '..', module)
})
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(String(output.concat('\n')).trim()) console.log(String(output.concat('\n')).trim())