# serverless-tscpaths

> Replace absolute paths to relative paths after typescript compilation

Latest version **0.0.8** (published 2023-01-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install serverless-tscpaths
pnpm add serverless-tscpaths
yarn add serverless-tscpaths
bun add serverless-tscpaths
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2023-01-28 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 2 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Maintainers | joarwilk, tgrade |
| Keywords | serverless, serverless framework, serverless plugin, typescript, paths, alias, absolute path, relative path, compilation, tsc |

## Links

- npm: https://www.npmjs.com/package/serverless-tscpaths
- Repository: https://github.com/baemingo/serverless-tscpaths
- Homepage: https://github.com/baemingo/serverless-tscpaths#readme
- Issues: https://github.com/baemingo/serverless-tscpaths/issues
- npm.io page: https://npm.io/package/serverless-tscpaths

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [@baemingo/tscpaths-async](https://npm.io/package/@baemingo/tscpaths-async.md) ^0.0.15

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2023-01-28
- 0.0.7 — 2022-05-01
- 0.0.6 — 2022-02-10
- 0.0.5 — 2019-12-13
- 0.0.4 — 2019-11-29
- 0.0.3 — 2019-11-20
- 0.0.2 — 2019-11-19
- 0.0.1 — 2019-11-19

## README

# serverless-tscpaths

[![npm version](https://badge.fury.io/js/serverless-tscpaths.svg)](https://badge.fury.io/js/serverless-tscpaths)
[![Dependency Status](https://david-dm.org/baemingo/serverless-tscpaths.svg)](https://david-dm.org/baemingo/serverless-tscpaths)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)

Replace absolute paths to relative paths after typescript compilation for serverless

## Installation

First, add serverless-tscpaths to your project:

```sh
$ yarn add serverless-tscpaths -D
```

Then inside your project's `serverless.yml` file add following entry to the plugins section: `serverless-tscpaths`. If there is no plugin section you will need to add it to the file.

It should look something like this:

```YAML
plugins:
  - serverless-plugin-typescript
  - serverless-tscpaths # should be after serverless-plugin-typescript
```

## Configuration

You can specify paths to your build or tsconfig using `custom` section of your `serverless.yml`.

```YAML
custom:
  tscpaths:
    buildPath: dist # default is .build
    tsconfigPath: tsconfig.es5.json # default is tsconfig.json in the root folder
    tscpathsPath: node_modules/@baemingo/tscpaths-async # if you want to use different lib
```

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