@snowpack/plugin-typescript

    1.2.1 • Public • Published

    @snowpack/plugin-typescript

    This plugin adds TypeScript type checking to any Snowpack project.

    When developing or building your site with Snowpack, this plugin will run TypeScript's tsc CLI in your project and pipe the output through Snowpack. Works with all version of TypeScript, as long as TypeScript is installed separately in your project.

    Usage

    npm i @snowpack/plugin-typescript typescript

    Then add the plugin to your Snowpack config:

    // snowpack.config.js
    
    module.exports = {
      plugins: ['@snowpack/plugin-typescript'],
    };

    Plugin Options

    Name Type Description
    tsc string Optional custom tsc command. For example, you can use TypeScript compiler by specifying: tsc: "tsc".
    args string Optional arguments to pass to the tsc CLI. For example, you can configure a custom project directory (with a custom tsconfig.json file) using args: "--project ./your/custom/path".

    Keywords

    none

    Install

    npm i @snowpack/plugin-typescript

    DownloadsWeekly Downloads

    11,815

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    6.47 kB

    Total Files

    5

    Last publish

    Collaborators

    • fredkschott
    • drewpowers