@pika/plugin-build-deno
v0.9.2
Published
A @pika/pack plugin: Adds a TypeScript distribution to your package, built to run on Deno.
Downloads
41
Readme
@pika/plugin-build-deno
A @pika/pack build plugin. Adds a TypeScript distribution to your package, built to run on Deno.
Note: The plugin is currently only smart enough to build a distribution from source that would already run on Deno. Converting npm imports to run on Deno is coming soon.
Install
# npm:
npm install @pika/plugin-build-deno --save-dev
# yarn:
yarn add @pika/plugin-build-deno --dev
Usage
{
"name": "example-package-json",
"version": "1.0.0",
"@pika/pack": {
"pipeline": [
["@pika/plugin-ts-standard-pkg"],
["@pika/plugin-build-deno"]
]
}
}
For more information about @pika/pack & help getting started, check out the main project repo.
Options
"entrypoint"
(Default:"deno"
): Customize the package.json manifest entrypoint set by this plugin. Accepts either a string, an array of strings, ornull
to disable entrypoint. Changing this is not recommended for most usage.
Result
- Adds a TypeScript distribution to your built package:
dist-deno/
- Adds a "deno" entrypoint to your built
package.json
manifest.
Note: This package is still experimental, and the built distribution is more or less a copy of your TypeScript source code. We'd love some help making this smarter (for example: rewriting npm package
import
statements from package names to unpkg.com URLs).