# stencil-custom-typescript-output-target

> StencilJS output target for compiling custom TypeScript in addition to your components

Latest version **1.1.0** (published 2021-02-09) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install stencil-custom-typescript-output-target
pnpm add stencil-custom-typescript-output-target
yarn add stencil-custom-typescript-output-target
bun add stencil-custom-typescript-output-target
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-02-09 |
| First published | 2021-02-09 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 46.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Elwyn |
| Maintainers | elwynelwyn |
| Keywords | stencil, stenciljs, output target, typescript |

## Links

- npm: https://www.npmjs.com/package/stencil-custom-typescript-output-target
- Repository: https://github.com/elwynelwyn/stencil-custom-typescript-output-target
- Homepage: https://github.com/elwynelwyn/stencil-custom-typescript-output-target#readme
- Issues: https://github.com/elwynelwyn/stencil-custom-typescript-output-target/issues
- npm.io page: https://npm.io/package/stencil-custom-typescript-output-target

## 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

- 1.1.0 (latest) — 2021-02-09
- 1.0.4 — 2021-02-09
- 1.0.3 — 2021-02-09
- 1.0.2 — 2021-02-09
- 1.0.1 — 2021-02-09
- 1.0.0 — 2021-02-09

## README

# stencil-custom-typescript-output-target

![version](https://img.shields.io/npm/v/stencil-custom-typescript-output-target) 
![license](https://img.shields.io/npm/l/stencil-custom-typescript-output-target) 
![build](https://img.shields.io/github/workflow/status/elwynelwyn/stencil-custom-typescript-output-target/build)

StencilJS output target for compiling custom TypeScript in addition to your components.

I had a situation where I wanted to compile some TypeScript, outside of the main Stencil component compile (some custom code I wanted incluided in my package).

This custom output target will make Stencil compile this code when it builds:

```typescript
// stencil.config.ts
import { Config } from '@stencil/core';
import { compileCustomTypescriptOutputTarget } from 'stencil-custom-typescript-output-target';

export const config: Config = {
    // ... rest of your config
    outputTargets: [
        // ... your other output targets
        compileCustomTypescriptOutputTarget({
            tsconfigPath: 'custom.tsconfig.json',
        }),
    ],
};
```

## Config

`CompileCustomTsOptions`: config object:

`tsconfigPath`: path to the tsconfig.json file to use. This should `include` or specify `files`. It should probably `exclude` your other Stencil code, so you're not building things twice / pulling in things you didn't mean to.

`skipValidate`: optional bool to skip the validate stage of the output target. This will mean any TS compiler errors will be allowed through without any issue.

---
_Source: https://npm.io/package/stencil-custom-typescript-output-target · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
