# webpack-typings-aliases-plugin

> Resolves typings aliases for typescript

Latest version **0.0.10** (published 2018-10-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-typings-aliases-plugin
pnpm add webpack-typings-aliases-plugin
yarn add webpack-typings-aliases-plugin
bun add webpack-typings-aliases-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2018-10-11 |
| First published | 2018-02-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | glebivanov |
| Maintainers | realglebivanov |
| Keywords | webpack, typescript, aliases, plugin |

## Links

- npm: https://www.npmjs.com/package/webpack-typings-aliases-plugin
- Repository: https://github.com/glebivanov816/webpack-typings-aliases-plugin
- Homepage: https://github.com/glebivanov816/webpack-typings-aliases-plugin#readme
- Issues: https://github.com/glebivanov816/webpack-typings-aliases-plugin/issues
- npm.io page: https://npm.io/package/webpack-typings-aliases-plugin

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.3
- [webpack](https://npm.io/package/webpack.md) ^4.20.2
- [typescript](https://npm.io/package/typescript.md) ^3.1.2
- [delete-empty](https://npm.io/package/delete-empty.md) ^2.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.10 (latest) — 2018-10-11
- 0.0.7 — 2018-07-15
- 0.0.6 — 2018-07-15
- 0.0.5 — 2018-02-24
- 0.0.4 — 2018-02-24
- 0.0.3 — 2018-02-24
- 0.0.2 — 2018-02-23
- 0.0.1 — 2018-02-23

## README

# webpack-typings-aliases-plugin
Resolves typings aliases for typescript replacing them with relative paths.

# About
Sometimes you have the same aliases in your webpack config and typescript config. 
Neither webpack(I mean plugins) nor typescript replace this aliases in `*.d.ts` files with actual paths to make paths correct.
This plugin is exactly for that situation. 
After all aliases are correctly resolved you can use, e.g. Dts-bundle to bundle them in single file.

# Installation
```
npm i -D webpack-typings-aliases-plugin
```

# Usage
```
const WebpackTypingsAliasesPlugin = require('webpack-typings-aliases-plugin');

// ---


plugins: [
  new WebpackTypingsAliasesPlugin({
    aliases: aliases, // webpack config aliases
    srcDir: paths.ts.srcDir, // directory where source `*.ts` files are located
    buildDir: paths.ts.buildDir // directory where emitted `*.d.ts` definitions are located
  }),
  ...
]
```

Also, you need to set `"declaration": true` in you `tsconfig.json`.

---
_Source: https://npm.io/package/webpack-typings-aliases-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
