update deps and make module based. use pnpm

This commit is contained in:
2022-03-20 18:38:56 +01:00
parent 1da1140eb3
commit 689776d975
6 changed files with 380 additions and 1042 deletions

View File

@@ -4,7 +4,7 @@ import cp from 'child_process'
import chalk from 'chalk'
import inquirer from 'inquirer'
const { version } = require('../package.json')
const VERSION = '1.2.3'
function checkIfBrewIsInstalled() {
try {
@@ -29,7 +29,7 @@ async function main() {
console.log(chalk.red.underline('Brew not installed'))
return
}
console.log(`${chalk.bold.blue('UnBrew')} - Brew cleanup utility\nVersion: ${version}\n`)
console.log(`${chalk.bold.blue('UnBrew')} - Brew cleanup utility\nVersion: ${VERSION}\n`)
let leaves: string[]
let loosers: string[]