$ cnpm install @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-pkgplugin.
# npm:
npm install @pika/plugin-ts-standard-pkg --save-dev
# yarn:
yarn add @pika/plugin-ts-standard-pkg --dev
{
"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.
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"]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.
dist-src/dist-types/package.json manifest.package.json manifest.Copyright 2013 - present © cnpmjs.org | Home |