# ember-cli-typescript-blueprint-polyfill

> A polyfill for Ember CLI's TypeScript blueprint capabilities.

Latest version **0.1.0** (published 2022-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-typescript-blueprint-polyfill
pnpm add ember-cli-typescript-blueprint-polyfill
yarn add ember-cli-typescript-blueprint-polyfill
bun add ember-cli-typescript-blueprint-polyfill
```

## 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.1.0 |
| Published | 2022-02-10 |
| First published | 2022-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chris Freeman |
| Maintainers | cafreeman |
| Keywords | ember, ember-cli, typescript, polyfill |

## Links

- npm: https://www.npmjs.com/package/ember-cli-typescript-blueprint-polyfill
- Repository: https://github.com/cafreeman/ember-cli-typescript-blueprint-polyfill
- Homepage: https://github.com/cafreeman/ember-cli-typescript-blueprint-polyfill#readme
- Issues: https://github.com/cafreeman/ember-cli-typescript-blueprint-polyfill/issues
- npm.io page: https://npm.io/package/ember-cli-typescript-blueprint-polyfill

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.0.0
- [remove-types](https://npm.io/package/remove-types.md) ^1.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.1.0 (latest) — 2022-02-10
- 0.0.1 — 2022-02-10

## README

# `ember-cli-typescript-blueprint-polyfill`

This library exports a function that will polyfill the Ember CLI implementation of [TypeScript blueprint functionality](https://github.com/emberjs/rfcs/blob/master/text/0776-typescript-blueprints.md) in Ember apps and addons that are on a version of Ember CLI that does not include support for TypeScript blueprints.

## Usage

For any blueprint that is authored in TypeScript (e.g. whose `files` directory contains .ts files), in the blueprint's `index.js`:

- add `shouldTransformTypeScript: true`,
- require `typescriptBlueprintPolyfill` and call it in the blueprint's `init` method, passing in `this` as the only argument

```js
// my-app/blueprints/foo/index.js
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');

module.exports = {
  shouldTransformTypeScript: true,

  init() {
    this._super && this._super.init.apply(this, arguments);
    typescriptBlueprintPolyfill(this);
  },
};
```

---
_Source: https://npm.io/package/ember-cli-typescript-blueprint-polyfill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
