@midwayjs/cli-plugin-clean
Advanced tools
Comparing version
@@ -6,2 +6,14 @@ # Change Log | ||
## [2.0.14-beta.2](https://github.com/midwayjs/cli/compare/v2.0.13...v2.0.14-beta.2) (2023-02-14) | ||
### Bug Fixes | ||
* concurrency ([#324](https://github.com/midwayjs/cli/issues/324)) ([47e3986](https://github.com/midwayjs/cli/commit/47e39865bdf6a426bd5bf163f7ebdb3ec188a67c)) | ||
* prevent log ([2a60bc6](https://github.com/midwayjs/cli/commit/2a60bc6e9a5f75edff826e817565cb6822faba0e)) | ||
## [2.0.14-beta.1](https://github.com/midwayjs/cli/compare/v2.0.13...v2.0.14-beta.1) (2023-02-07) | ||
@@ -8,0 +20,0 @@ |
@@ -23,3 +23,3 @@ "use strict"; | ||
if (!(0, fs_extra_1.existsSync)((0, path_1.join)(cwd, 'package.json'))) { | ||
console.log(`[ Midway ] package.json not found in ${cwd}\n`); | ||
this.core.cli.error(`[ Midway ] package.json not found in ${cwd}\n`); | ||
return; | ||
@@ -32,5 +32,5 @@ } | ||
await this.safeRemove((0, path_1.join)(cwd, file)); | ||
console.log(`[ Midway ] clean ${file} success!`); | ||
this.core.cli.log(`[ Midway ] clean ${file} success!`); | ||
} | ||
console.log('[ Midway ] clean complete!'); | ||
this.core.cli.log('[ Midway ] clean complete!'); | ||
} | ||
@@ -44,3 +44,3 @@ } | ||
} | ||
console.log('[ Midway ] clean midway temporary files complete!'); | ||
this.core.cli.log('[ Midway ] clean midway temporary files complete!'); | ||
} | ||
@@ -47,0 +47,0 @@ safeRemove(path) { |
{ | ||
"name": "@midwayjs/cli-plugin-clean", | ||
"version": "2.0.14-beta.1", | ||
"version": "2.0.14-beta.2", | ||
"main": "dist/index", | ||
"typings": "dist/index.d.ts", | ||
"dependencies": { | ||
"@midwayjs/command-core": "^2.0.6", | ||
"@midwayjs/serverless-spec-builder": "^2.0.14-beta.1", | ||
"@midwayjs/command-core": "^2.0.14-beta.2", | ||
"@midwayjs/serverless-spec-builder": "^2.0.14-beta.2", | ||
"fs-extra": "^8.1.0" | ||
@@ -36,3 +36,3 @@ }, | ||
"license": "MIT", | ||
"gitHead": "1c8413b340095670576a8c41f9b7bffc6a2cf325" | ||
"gitHead": "36dec453856ed3c3d3c79e8cf92c53a7c9dcf3b0" | ||
} |
@@ -19,3 +19,3 @@ import { BasePlugin } from '@midwayjs/command-core'; | ||
if (!existsSync(join(cwd, 'package.json'))) { | ||
console.log(`[ Midway ] package.json not found in ${cwd}\n`); | ||
this.core.cli.error(`[ Midway ] package.json not found in ${cwd}\n`); | ||
return; | ||
@@ -30,5 +30,5 @@ } | ||
await this.safeRemove(join(cwd, file)); | ||
console.log(`[ Midway ] clean ${file} success!`); | ||
this.core.cli.log(`[ Midway ] clean ${file} success!`); | ||
} | ||
console.log('[ Midway ] clean complete!'); | ||
this.core.cli.log('[ Midway ] clean complete!'); | ||
} | ||
@@ -43,3 +43,3 @@ } | ||
} | ||
console.log('[ Midway ] clean midway temporary files complete!'); | ||
this.core.cli.log('[ Midway ] clean midway temporary files complete!'); | ||
} | ||
@@ -46,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
34377
1.56%