Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

const path = require('path');
const fs = require('fs.extra');
const fs = require('fs-extra');
const isWin = process.platform === 'win32';

class DepLinker {
Expand Down Expand Up @@ -99,7 +99,7 @@ class DepLinker {
// In the future it is possible to utilize the 'runas' module
// to ShellExec this command with the Verb: RunAs under Windows. The
// ideal scenario would be for the task to prompt the user for credentials.
fs.symlink(linkSource, linkDestiny, linkType, resolve);
fs.ensureSymlink(linkSource, linkDestiny, linkType, resolve);
}))
.then((err) => { // Report on errors
if (err) { console.log(err); }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Lazamar @ FourLabs",
"license": "ISC",
"dependencies": {
"fs.extra": "^1.3.2"
"fs-extra": "^9.0.0",
},
"devDependencies": {},
"repository": {
Expand Down