https://github.com/wraith13/evil-tsconfig.paths.ts
When import, resolve paths in tsconfig.json for TypeScript with Node.js
https://github.com/wraith13/evil-tsconfig.paths.ts
Last synced: 14 days ago
JSON representation
When import, resolve paths in tsconfig.json for TypeScript with Node.js
- Host: GitHub
- URL: https://github.com/wraith13/evil-tsconfig.paths.ts
- Owner: wraith13
- License: bsl-1.0
- Created: 2024-01-22T14:50:03.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T12:05:56.000Z (over 2 years ago)
- Last Synced: 2024-05-28T15:16:37.791Z (about 2 years ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# evil-tsconfig.paths.ts
When import, resolve paths in tsconfig.json for TypeScript with Node.js
## How to install for your project by npm
```sh
npm install @wraith13/evil-tsconfig.paths.ts --save
```
## How to install for your project by git submodule
```sh
git submodule add https://github.com/wraith13/evil-tsconfig.paths.ts evil-tsconfig.paths.ts
```
## How to use
```typescript
import tsconfigJson from "./tsconfig.json";
import { applyPaths } from "evil-tsconfig.paths.ts"; // or "@wraith13/evil-tsconfig.paths.ts" when npm
applyPaths(tsconfigJson.compilerOptions);
```
## License
[Boost Software License](LICENSE_1_0.txt)
## Related projects
- [evil-commonjs](https://github.com/wraith13/evil-commonjs)