mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Toolkit: fix grafana-toolkit binary path so toolkit is not run in linked mode (#25860)
This commit is contained in:
parent
fb3bec058a
commit
75706a4a8b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user