serverless-aliyun-function-compute
Version:
Provider plugin for the Serverless Framework v1.x which adds support for Aliyun Function Compute
17 lines (13 loc) • 382 B
JavaScript
;
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);
}
}
},
};