diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-03 17:13:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-06 08:26:14 +0100 |
commit | f8360396ffabd2f95e9ece9c5755173bae0114b6 (patch) | |
tree | 83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /shared | |
parent | cea093bca5b9d311b5c1d0539d53e965c901015b (diff) | |
download | PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.gz PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.zst PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.zip |
Stop using tsconfig register
Prefer to replace paths at compile time
Diffstat (limited to 'shared')
-rw-r--r-- | shared/core-utils/common/path.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/core-utils/common/path.ts b/shared/core-utils/common/path.ts index ec507538b..006505316 100644 --- a/shared/core-utils/common/path.ts +++ b/shared/core-utils/common/path.ts | |||
@@ -7,6 +7,8 @@ function root () { | |||
7 | 7 | ||
8 | rootPath = __dirname | 8 | rootPath = __dirname |
9 | 9 | ||
10 | if (basename(rootPath) === 'tools') rootPath = resolve(rootPath, '..') | ||
11 | if (basename(rootPath) === 'scripts') rootPath = resolve(rootPath, '..') | ||
10 | if (basename(rootPath) === 'common') rootPath = resolve(rootPath, '..') | 12 | if (basename(rootPath) === 'common') rootPath = resolve(rootPath, '..') |
11 | if (basename(rootPath) === 'core-utils') rootPath = resolve(rootPath, '..') | 13 | if (basename(rootPath) === 'core-utils') rootPath = resolve(rootPath, '..') |
12 | if (basename(rootPath) === 'shared') rootPath = resolve(rootPath, '..') | 14 | if (basename(rootPath) === 'shared') rootPath = resolve(rootPath, '..') |