New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@snowpack/plugin-typescript

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowpack/plugin-typescript

This plugin adds TypeScript type checking to any Snowpack project.

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
2
Created
Source

@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

NameTypeDescription
tscstringOptional custom tsc command. For example, you can use TypeScript compiler by specifying: tsc: "tsc".
argsstringOptional 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".

FAQs

Package last updated on 16 Jan 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