{"repo":"jonaskello/tsconfig-paths","free":true,"listed":false,"github":"https://github.com/jonaskello/tsconfig-paths","clone":"git clone https://github.com/jonaskello/tsconfig-paths.git","description":"Load node modules according to tsconfig paths, in run-time or via API.","language":"TypeScript","stars":1906,"topics":["tsconfig-paths","typescript","tsconfig"],"license":"MIT","category":"dev-tools","readme_excerpt":"tsconfig-paths [![npm version][version-image]][version-url] [![build][build-image]][build-url] [![Coverage Status][codecov-image]][codecov-url] [![MIT license][license-image]][license-url] [![code style: prettier][prettier-image]][prettier-url] Use this to load modules whose location is specified in the paths section of tsconfig.json or jsconfig.json . Both loading at run-time and via API are supported. TypeScript by default mimics the Node.js runtime resolution strategy of modules. But it also allows the use of path mapping which allows arbitrary module paths (that doesn't start with \"/\" or \".\") to be specified and mapped to physical paths in the filesystem. The TypeScript compiler can resolve these paths from tsconfig so it will compile OK. But if you then try to execute the compiled files with node (or ts-node), it will only look in the node modules folders all the way up to the root of the filesystem and thus will not find the modules specified by paths in tsconfig . If you require this package's tsconfig-paths/register module it will read the paths from tsconfig.json or jsconfig.json and convert node's module loading calls to physical file paths that node can load. How to install How to use With node If process.env.TS NODE BASEURL is set it will override the value of baseUrl in tsconfig.json : With ts-node If process.env.TS NODE PROJECT is set it will be used to resolved tsconfig.json With Webpack For Webpack please use the tsconfig-paths-webpack-plugin. With mocha and t","default_branch":null,"files":null,"tree":[],"storefront":"/r/jonaskello","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jonaskello/tsconfig-paths/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}