diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-27 16:42:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-30 09:37:18 +0200 |
commit | e874edd9f876df7b4020137b3a9b7feb8078b38f (patch) | |
tree | 53b0b7c0013d88f7af966f6fd833585a634e7c3f /server/helpers | |
parent | 94b13cf4b3e245a3594193f1fa59f2333aedb19e (diff) | |
download | PeerTube-e874edd9f876df7b4020137b3a9b7feb8078b38f.tar.gz PeerTube-e874edd9f876df7b4020137b3a9b7feb8078b38f.tar.zst PeerTube-e874edd9f876df7b4020137b3a9b7feb8078b38f.zip |
forceConsistentCasingInFileNames to true
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/core-utils.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index 7f28cfc8b..2cbf0f8fe 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -164,9 +164,10 @@ let rootPath: string | |||
164 | function root () { | 164 | function root () { |
165 | if (rootPath) return rootPath | 165 | if (rootPath) return rootPath |
166 | 166 | ||
167 | // We are in /helpers/utils.js | 167 | rootPath = __dirname |
168 | rootPath = join(__dirname, '..', '..') | ||
169 | 168 | ||
169 | if (basename(rootPath) === 'helpers') rootPath = resolve(rootPath, '..') | ||
170 | if (basename(rootPath) === 'server') rootPath = resolve(rootPath, '..') | ||
170 | if (basename(rootPath) === 'dist') rootPath = resolve(rootPath, '..') | 171 | if (basename(rootPath) === 'dist') rootPath = resolve(rootPath, '..') |
171 | 172 | ||
172 | return rootPath | 173 | return rootPath |