diff --git a/bin/gh-pages.js b/bin/gh-pages.js index 8ff652cc..15f8ec61 100755 --- a/bin/gh-pages.js +++ b/bin/gh-pages.js @@ -8,7 +8,7 @@ const addr = require('email-addresses'); function publish(config) { return new Promise((resolve, reject) => { - const basePath = path.join(process.cwd(), program.dist); + const basePath = path.resolve(process.cwd(), program.dist); ghpages.publish(basePath, config, err => { if (err) { return reject(err);