]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/core-utils/common/path.ts
Stop using tsconfig register
[github/Chocobozzz/PeerTube.git] / shared / core-utils / common / path.ts
index ec507538b21ca1900ea9f7485a51826f31916b37..006505316640c4ac8c16ef508df08cb342316def 100644 (file)
@@ -7,6 +7,8 @@ function root () {
 
   rootPath = __dirname
 
+  if (basename(rootPath) === 'tools') rootPath = resolve(rootPath, '..')
+  if (basename(rootPath) === 'scripts') rootPath = resolve(rootPath, '..')
   if (basename(rootPath) === 'common') rootPath = resolve(rootPath, '..')
   if (basename(rootPath) === 'core-utils') rootPath = resolve(rootPath, '..')
   if (basename(rootPath) === 'shared') rootPath = resolve(rootPath, '..')