Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 13, 2021
1 parent eee1414 commit 908cde3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ const trash = async (paths, options) => {

let trash;
if (process.platform === 'darwin') {
trash = require('./lib/macos');
trash = require('./lib/macos.js');
} else if (process.platform === 'win32') {
trash = require('./lib/windows');
trash = require('./lib/windows.js');
} else {
trash = require('./lib/linux');
trash = require('./lib/linux.js');
}

return trash(paths);
Expand Down
2 changes: 1 addition & 1 deletion lib/macos.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const os = require('os');
const path = require('path');
const chunkedExec = require('./chunked-exec');
const chunkedExec = require('./chunked-exec.js');

const isOlderThanMountainLion = Number(os.release().split('.')[0]) < 12;

Expand Down
2 changes: 1 addition & 1 deletion lib/windows.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
const path = require('path');
const chunkedExec = require('./chunked-exec');
const chunkedExec = require('./chunked-exec.js');

// Binary source: https://github.com/sindresorhus/recycle-bin
const binary = path.join(__dirname, 'windows-trash.exe');
Expand Down

0 comments on commit 908cde3

Please sign in to comment.