🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

c-deploy

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c-deploy - npm Package Compare versions

Comparing version
2.0.0
to
2.0.1
+1
-1
lib/dist2zip.js

@@ -17,3 +17,3 @@ const path = require('path')

clearDistZip(config)
await clearDistZip(config)

@@ -20,0 +20,0 @@ process.exit() // 退出流程

{
"name": "c-deploy",
"version": "2.0.0",
"version": "2.0.1",
"description": "node执行自动部署,可配置多环境,自动打包并部署到服务器上",

@@ -5,0 +5,0 @@ "bin": {

@@ -19,4 +19,11 @@ const fs = require('fs')

const clearDistZip = (config) => {
const distZipPath = path.resolve(process.cwd(), `${config.publicPath}.zip`)
fs.unlink(distZipPath, () => {})
return new Promise((resolve, reject) => {
const distZipPath = path.resolve(process.cwd(), `${config.publicPath}.zip`)
fs.unlink(distZipPath, (err) => {
if (err) {
reject('本地zip文件删除失败...')
}
resolve()
})
})
}

@@ -23,0 +30,0 @@