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:
parent
94b13cf4b3
commit
e874edd9f8
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue