Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yarnpkg/plugin-typescript

Package Overview
Dependencies
Maintainers
5
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/plugin-typescript

  • 4.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39K
increased by9.05%
Maintainers
5
Weekly downloads
 
Created
Source

@yarnpkg/plugin-typescript

Features

  • Automatically adds @types/ packages into your dependencies when you add a package that doesn't include its own types
  • Adds support for types to publishConfig (same behavior as publishConfig.bin)

Install

This plugin is included by default starting from Yarn 4.

Configuration

This plugin is enabled by default if you have a tsconfig.json file at the root of your project, or in your current workspace. See tsEnableAutoTypes for more information.

Example

❯ yarn/packages/plugin-typescript ❯ yarn add lodash

➤ YN0000: · Yarn X.Y.Z
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0.24s
➤ YN0000: ┌ Fetch step
➤ YN0013: │ @types/lodash@npm:4.14.121 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ lodash@npm:4.14.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 3.63s
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 2.75s
➤ YN0000: · Done with warnings in 6.81s

As you can see in the fetch step, even though we only added lodash into our dependencies, Yarn automatically figured out that we would need @types/lodash, and added it before we ask it to.

FAQs

Package last updated on 02 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc