diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-12 23:32:55 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-12 23:32:55 +0200 |
commit | f93bd1fd67f38cd9dc9250f328bb1b8e1214e37c (patch) | |
tree | 9e8b85cbad3dbf65e4e4a1162f68163c72b3aea2 /api/scripts/tsconfig-paths-bootstrap.js | |
parent | Merge pull request #353 from AlTech98/dummy-routes (diff) | |
parent | :sparkles: #307 done (diff) | |
download | server-f93bd1fd67f38cd9dc9250f328bb1b8e1214e37c.tar.xz |
Merge branch 'typescript-interface-body-parser+autogenerate-unit-tests+documentation'
Diffstat (limited to 'api/scripts/tsconfig-paths-bootstrap.js')
-rw-r--r-- | api/scripts/tsconfig-paths-bootstrap.js | 10 |
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/*"] + } +}); |