Skip to content

Commit

Permalink
feat: remove fs-extra
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar-P-yan committed Jun 14, 2024
1 parent 0098e9b commit de21859
Show file tree
Hide file tree
Showing 13 changed files with 141 additions and 166 deletions.
6 changes: 3 additions & 3 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var child = require('child_process');
var readline = require('readline');
var path = require('path');
var os = require('os');
var fs = require('fs-extra');
var fs = require('fs');
var events = require('events');
var xdebug = require('debug');

Expand Down Expand Up @@ -61,8 +61,8 @@ function getTrayBinPath(debug = false, copyDir = false) {
: `${os__namespace.homedir()}/.cache/node-systray/`, pkg.version);
const copyDistPath = path__namespace.join(copyDir, binName);
if (!fs__namespace.existsSync(copyDistPath)) {
fs__namespace.ensureDirSync(copyDir);
fs__namespace.copySync(binPath, copyDistPath);
fs__namespace.mkdirSync(copyDir, { recursive: true });
fs__namespace.copyFileSync(binPath, copyDistPath);
}
return copyDistPath;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.esm.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit de21859

Please sign in to comment.