Skip to content

Commit

Permalink
Update dependencies (Koenkk#17354)
Browse files Browse the repository at this point in the history
* Update dependencies

* Fix tests

---------

Co-authored-by: Koenkk <[email protected]>
Co-authored-by: Koen Kanters <[email protected]>
  • Loading branch information
3 people authored Apr 16, 2023
1 parent f9121b2 commit b3c8866
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 153 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs');
const os = require('os');
const path = require('path');
const {exec} = require('child_process');
const rimraf = require('rimraf');
const {rimrafSync} = require('rimraf');
require('source-map-support').install();

let controller;
Expand Down Expand Up @@ -41,7 +41,7 @@ async function writeHash() {
async function build(reason) {
return new Promise((resolve, reject) => {
process.stdout.write(`Building Zigbee2MQTT... (${reason})`);
rimraf.sync('dist');
rimrafSync('dist');
const env = {...process.env};
const _600mb = 629145600;
if (_600mb > os.totalmem() && !env.NODE_OPTIONS) {
Expand Down
4 changes: 2 additions & 2 deletions lib/util/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as settings from './settings';
import path from 'path';
import fs from 'fs';
import fx from 'mkdir-recursive';
import rimraf from 'rimraf';
import {rimrafSync} from 'rimraf';
import assert from 'assert';

const colorizer = winston.format.colorize();
Expand Down Expand Up @@ -144,7 +144,7 @@ function cleanup(): void {
directories = directories.slice(10, directories.length);
directories.forEach((dir) => {
logger.debug(`Removing old log directory '${dir.path}'`);
rimraf.sync(dir.path);
rimrafSync(dir.path);
});
}
}
Expand Down
Loading

0 comments on commit b3c8866

Please sign in to comment.