Federated video streaming platform using ActivityPub and P2P in the web browser with Angular. https://joinpeertube.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
455 B

  1. import { resolve } from 'path'
  2. import tsConfigPaths = require('tsconfig-paths')
  3. const tsConfig = require('../../tsconfig.json')
  4. function registerTSPaths () {
  5. // Thanks: https://github.com/dividab/tsconfig-paths/issues/75#issuecomment-458936883
  6. tsConfigPaths.register({
  7. baseUrl: resolve(tsConfig.compilerOptions.baseUrl || '', tsConfig.compilerOptions.outDir || ''),
  8. paths: tsConfig.compilerOptions.paths
  9. })
  10. }
  11. export {
  12. registerTSPaths
  13. }