serverless-aliyun-function-compute-wnj
Version:
Provider plugin for the Serverless Framework v1.x which adds support for Aliyun Function Compute
20 lines (15 loc) • 454 B
JavaScript
;
const BbPromise = require('bluebird');
const path = require('path');
const fse = require('fs-extra');
module.exports = {
cleanupServerlessDir() {
if (this.serverless.config.servicePath) {
const serverlessDirPath = path.join(this.serverless.config.servicePath, '.serverless');
if (fse.pathExistsSync(serverlessDirPath)) {
fse.removeSync(serverlessDirPath);
}
}
return BbPromise.resolve();
},
};