@pika/plugin-ts-standard-pkg
A @pika/pack plugin: Builds your TypeScript package source as standard, ES2018 JavaScript.
Last updated 5 months ago by fredkschott .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @pika/plugin-ts-standard-pkg 
SYNC missed versions from official npm registry.

@pika/plugin-ts-standard-pkg

A @pika/pack build plugin. Builds your TypeScript package source as standard, ES2018 JavaScript. Also includes type definition files for your package automatically.

Note: If your package isn't written in TypeScript, check out the normal @pika/plugin-standard-pkg plugin.

Install

# npm:
npm install @pika/plugin-ts-standard-pkg --save-dev
# yarn:
yarn add @pika/plugin-ts-standard-pkg --dev

Usage

{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-ts-standard-pkg", { /* options: see below */ }]
    ]
  }
}

For more information about @pika/pack & help getting started, check out the main project repo.

Options

This plugin runs tsc internally, so it supports all tsconfig.json options defined in your project-level config file (like compilerOptions & exclude).

  • "tsconfig": Optional, the relative path to the tsconfig.json config file to use. Defaults to the top-level project TypeScript config file, if one exists.
  • "args": Optional, an array of additional arguments for tsc. Example: ["--build"]

Result

Unlike other build plugins, this plugin reads directly from your package src/ directory. Make sure your code exists in a src/ directory, with an src/index.ts file as the package entrypoint.

Other build plugins depend on a standard ES2018 distribution, so include this plugin early in your build pipeline for others to use.

  1. Adds a modern ES2018 distribution to your built package: dist-src/
  2. Adds type definitions to your package automatically: dist-types/
  3. Adds an "esnext" entrypoint to your built package.json manifest.
  4. Adds a "types" entrypoint to your built package.json manifest.

Current Tags

  • 0.9.2                                ...           latest (5 months ago)

29 Versions

  • 0.9.2                                ...           5 months ago
  • 0.9.1                                ...           5 months ago
  • 0.8.3                                ...           5 months ago
  • 0.9.0                                ...           5 months ago
  • 0.8.2                                ...           5 months ago
  • 0.8.1                                ...           8 months ago
  • 0.8.0                                ...           8 months ago
  • 0.7.1                                ...           9 months ago
  • 0.7.0                                ...           9 months ago
  • 0.6.1                                ...           10 months ago
  • 0.6.0                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.16                                ...           a year ago
  • 0.3.15                                ...           a year ago
  • 0.3.14                                ...           a year ago
  • 0.3.13                                ...           a year ago
  • 0.3.12                                ...           a year ago
  • 0.3.11                                ...           a year ago
  • 0.3.10                                ...           a year ago
  • 0.3.9                                ...           a year ago
  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.2.8                                ...           a year ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 45
Last Day 0
Last Week 34
Last Month 112
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |