summary refs log tree commit diff
path: root/api/scripts/tsconfig-paths-bootstrap.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 21:09:29 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 21:09:29 +0200
commit60535f5159a8674874c0a2e319d46400184bd22e (patch)
treeb9c0510b8a5e837d05987a5bf45afb4037044d52 /api/scripts/tsconfig-paths-bootstrap.js
parentMerge pull request #348 from AlTech98/fix-cdn-upload (diff)
downloadserver-60535f5159a8674874c0a2e319d46400184bd22e.tar.xz
:art: remove long relatives paths -> short module paths
Diffstat (limited to 'api/scripts/tsconfig-paths-bootstrap.js')
-rw-r--r--api/scripts/tsconfig-paths-bootstrap.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/api/scripts/tsconfig-paths-bootstrap.js b/api/scripts/tsconfig-paths-bootstrap.js
new file mode 100644

index 00000000..d6ad3c57 --- /dev/null +++ b/api/scripts/tsconfig-paths-bootstrap.js
@@ -0,0 +1,10 @@ +const tsConfigPaths = require("tsconfig-paths"); +const path = require("path"); + +const cleanup = tsConfigPaths.register({ + baseUrl: path.join(__dirname, ".."), + paths: { + "@fosscord/api": ["dist/index.js"], + "@fosscord/api/*": ["dist/*"] + } +});