You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

broccoli-babel-preset-typescript

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-babel-preset-typescript

A broccoli plugin which only removes TypeScript types


Version published
Weekly downloads
1.1K
decreased by-15.01%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

broccoli-babel-preset-typescript ci

A broccoli plugin which only removes TypeScript types

installation

yarn add --save broccoli-babel-preset-typescript

or

npm install --save broccoli-babel-preset-typescript

Usage

Within a Broccoli Pipeline


const { BroccoliBabelPresetTypeScript } = require('BroccoliBabelPresetTypeScript');

// now in your broccoli pipeline
const output = new BroccoliBabelPresetTypeScript([inputNode]);

Advanced Example - A standalone script

#!/usr/bin/env node
'use strict';

const { Builder } = require('builder');
const { BroccoliBabelPresetTypeScript } = require('broccoli-babel-preset-typescript');
const TreeSync = require('tree-sync');

const [
  ,
  ,
  inputDirectory,
  outputDirectory,
] = process.argv;

const plugin = new BroccoliBabelPresetTypeScript([inputDirectory]);
const builder = new Builder(plugin);

(async function main() {
  try {
    const { directory } = await builder.build();
    const tree = new TreeSync(directory, outputDirectory);
    tree.sync();
  } finally {
    await builder.cleanup();
  }
}());

options:

sourceMaps:

  • true will produce a sibling source-map file, and the required sourceMappingURL
  • inline will append a sourceMappingURL that contains a data URI of the sourcemapping
  • both will have the behavior of both true and inline
  • false or when omitted, will result in no sourcemaps being created (the default)

FAQs

Package last updated on 16 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc