1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

forceConsistentCasingInFileNames to true

This commit is contained in:
Chocobozzz 2021-08-27 16:42:17 +02:00
parent 94b13cf4b3
commit e874edd9f8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 5 additions and 4 deletions

View file

@ -164,9 +164,10 @@ let rootPath: string
function root () {
if (rootPath) return rootPath
// We are in /helpers/utils.js
rootPath = join(__dirname, '..', '..')
rootPath = __dirname
if (basename(rootPath) === 'helpers') rootPath = resolve(rootPath, '..')
if (basename(rootPath) === 'server') rootPath = resolve(rootPath, '..')
if (basename(rootPath) === 'dist') rootPath = resolve(rootPath, '..')
return rootPath