From dbcf91074a069c1da55e4849a0ba9f4faa5f3dc8 Mon Sep 17 00:00:00 2001 From: chwan1 Date: Mon, 14 Dec 2020 15:57:56 +0800 Subject: [PATCH] update --- dist/index.js | 4 ++-- sftp.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 24aae32..191f0bb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27274,8 +27274,8 @@ __webpack_require__.r(__webpack_exports__); function deploy(config, options) { const deployer = new sftp_sync_deploy_lib_sftpSync__WEBPACK_IMPORTED_MODULE_2__.SftpSync(config, options); - deployer.initQueuifiedSftp(); - config.remoteDir && deployer.queuifiedSftp.mkdir(config.remoteDir); + let queuifiedSftp = deployer.initQueuifiedSftp(); + config.remoteDir && queuifiedSftp.mkdir(config.remoteDir); console.log(chalk__WEBPACK_IMPORTED_MODULE_0___default().green(`* Deploying to host ${config.host}`)); console.log(chalk__WEBPACK_IMPORTED_MODULE_0___default().grey('* local dir = ') + deployer.localRoot); diff --git a/sftp.js b/sftp.js index 9082938..de5316a 100644 --- a/sftp.js +++ b/sftp.js @@ -4,8 +4,8 @@ import { SftpSync } from 'sftp-sync-deploy/lib/sftpSync'; function deploy(config, options) { const deployer = new SftpSync(config, options); - deployer.initQueuifiedSftp(); - config.remoteDir && deployer.queuifiedSftp.mkdir(config.remoteDir); + let queuifiedSftp = deployer.initQueuifiedSftp(); + config.remoteDir && queuifiedSftp.mkdir(config.remoteDir); console.log(chalk.green(`* Deploying to host ${config.host}`)); console.log(chalk.grey('* local dir = ') + deployer.localRoot);