# @daxtrapub/tsconfig

> Shared TypeScript config

Latest version **1.0.13** (published 2022-11-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install @daxtrapub/tsconfig
pnpm add @daxtrapub/tsconfig
yarn add @daxtrapub/tsconfig
bun add @daxtrapub/tsconfig
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2022-11-11 |
| First published | 2022-11-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ariddell |
| Maintainers | daxtrapub |

## Links

- npm: https://www.npmjs.com/package/@daxtrapub/tsconfig
- Repository: http://gitea.infogistics.lan:3000/Daxtra/daxtra-tsconfig
- npm.io page: https://npm.io/package/@daxtrapub/tsconfig

## Recent versions

- 1.0.13 (latest) — 2022-11-11

## README

# Daxtra default tsconfig

# Installation

Set up git credentials for our local repo with your <USER> and <PASSWORD>

```shell
$ echo http://<USER>:<PASSWORD>@gitea.infogistics.lan%3a3000 >  ~/.git-credentials
```

Set git to use that :

```shell
$ git config --global credential.helper store
```

Set up verdaccio as the registry

```shell
npm set registry http://verdaccio.infogistics.lan/
```

Do the install

```shell
$ npm install daxtra-tsconfig
```

To install from gitea at a specific tag (or similar for head). DO NOT RELEASE PRODUCTS DEPENDING ON GITEA
 : 
```shell
$ npm install "git+http://gitea.infogistics.lan:3000/Daxtra/daxtra-tsconfig.git#v1.0.0"
```



## Basic Usage

Install as above then :

`package.json`


```json
  "scripts": {
    "build": "tsc --p node_modules/daxtra-tsconfig/tsconfig.json",
```



## Usage to extend


`package.json`


```json
  "scripts": {
    "build": "tsc --p tsconfig.json",
```



`tsconfig.json`


```json
{
	"extends": "./node_modules/daxtra-tsconfig/tsconfig.json",
	"compilerOptions": {
	}
}
```



## Paths

if you are not extending the tsconfig file and you want to use the magic "@/" paths in your test you will need to include the different path :

```json
  "scripts": {
    ...
    "test": "TS_NODE_PROJECT='./node_modules/daxtra-tsconfig/tsconfig.json' mocha --recursive --checkleaks --exit",
```


to get the paths to work you will need ts-node >= 10.0.0

the default is to map ```@/XXX``` to ```src/XXX``` and ```@test/XXX``` to ```test/XXX``` this can be used to avoid long ```../../../XXX``` requirement chains

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