Commit c796f70a by Agnès Toulet Committed by GitHub

Toolkit: Update node_modules path to fix Windows error (#23582)

parent f997f85e
...@@ -15,7 +15,7 @@ const isLinkedMode = () => { ...@@ -15,7 +15,7 @@ const isLinkedMode = () => {
} }
try { try {
return fs.lstatSync(`${pwd}/node_modules/@grafana/toolkit`.replace('~', process.env.HOME)).isSymbolicLink(); return fs.lstatSync(`${__dirname}/../../../node_modules/@grafana/toolkit`).isSymbolicLink();
} catch { } catch {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment