Skip to content

Instantly share code, notes, and snippets.

@Joe1220
Created June 10, 2020 14:46
Show Gist options
  • Save Joe1220/6a613a3a4c1cd49e4a299dfde00a8d70 to your computer and use it in GitHub Desktop.
Save Joe1220/6a613a3a4c1cd49e4a299dfde00a8d70 to your computer and use it in GitHub Desktop.
const tsConfigPathFile = require("./tsconfig.paths.json")
const tsConfig = require("./tsconfig.json")
const tsConfigPaths = require("tsconfig-paths")
tsConfigPaths.register({
baseUrl: tsConfig.compilerOptions.outDir,
paths: tsConfigPathFile.compilerOptions.paths
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment