diff --git a/main.js b/main.js index 175b967..abfcafc 100644 --- a/main.js +++ b/main.js @@ -37,10 +37,10 @@ module.exports = class HotReload extends Plugin { isSymlink = (() => { try { - const fs = require('fs'); + const {lstatSync} = require('fs'); return path => { const realPath = [this.app.vault.adapter.basePath, path].join("/"); - const lstat = fs.lstatSync(realPath, {throwIfNoEntry: false}); + const lstat = lstatSync(realPath, {throwIfNoEntry: false}); return lstat && lstat.isSymbolicLink(); } } catch (e) { diff --git a/manifest.json b/manifest.json index 291a6c0..ded0104 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Hot Reload", "author": "PJ Eby", "authorUrl": "https://github.com/pjeby", - "version": "0.1.14", + "version": "0.1.15", "minAppVersion": "1.5.8", "isDesktopOnly": true, "description": "Automatically reload in-development plugins when their files are changed" diff --git a/versions.json b/versions.json index 04702c2..98890c7 100644 --- a/versions.json +++ b/versions.json @@ -1,5 +1,5 @@ { - "0.1.14": "1.5.8", + "0.1.15": "1.5.8", "0.1.13": "1.5.8", "0.1.11": "0.15.9" }