mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
chore(gulp-publish): convert spawn stream to string if it's not
This commit is contained in:
@ -429,11 +429,11 @@ gulp.task('publish', ['src'], function(done){
|
|||||||
var npmCmd = spawn('npm', ['publish', './' + distDir]);
|
var npmCmd = spawn('npm', ['publish', './' + distDir]);
|
||||||
|
|
||||||
npmCmd.stdout.on('data', function (data) {
|
npmCmd.stdout.on('data', function (data) {
|
||||||
console.log(data);
|
console.log(data.toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
npmCmd.stderr.on('data', function (data) {
|
npmCmd.stderr.on('data', function (data) {
|
||||||
console.log('npm err: ' + data);
|
console.log('npm err: ' + data.toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
npmCmd.on('close', function() {
|
npmCmd.on('close', function() {
|
||||||
|
Reference in New Issue
Block a user