Commit 75706a4a by Dominik Prokop Committed by GitHub

Toolkit: fix grafana-toolkit binary path so toolkit is not run in linked mode (#25860)

parent fb3bec05
......@@ -23,8 +23,9 @@ const isLinkedMode = () => {
};
const entrypoint = () => {
const resolvedJsDir = path.resolve(`${__dirname}/../dist/src/cli/index.js`);
const resolvedTsDir = path.resolve(`${__dirname}/../src/cli/index.ts`);
const entrypointBase = `${__dirname}/../src/cli/index`;
const resolvedJsDir = path.resolve(`${entrypointBase}.js`);
const resolvedTsDir = path.resolve(`${entrypointBase}.ts`);
// IF we have a toolkit directory AND linked grafana toolkit AND the toolkit dir is a symbolic lik
// THEN run everything in linked mode
......@@ -46,4 +47,3 @@ const entrypoint = () => {
};
require(entrypoint()).run(includeInternalScripts);
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