Registry / devops / yarn-check-webpack-plugin

yarn-check-webpack-plugin

JSON →
library1.2.0jsnpmunverified

A webpack plugin that verifies there are no missing or outdated yarn dependencies during development. The plugin runs `yarn check --integtrity` as a webpack compilation hook and displays warnings for missing or wrong version packages. It is designed for large codebases where dependencies change frequently across branches. The current stable version is 1.2.0, but the package appears in maintenance mode (last release in 2019). It is type-safe with TypeScript types included. Exclusive in its integration of yarn's dependency checking directly into the webpack build lifecycle, differentiating it from lint-based or separate CLI approaches.

npm install yarn-check-webpack-plugin
INSTALL
IMPORT
SIG · YARN-CHECK-WEBPACK
Y
yarn-check-webpack-plugin
devopsjavascriptv1.2.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

YarnCheck
import { YarnCheck } from 'yarn-check-webpack-plugin'
import YarnCheck from 'yarn-check-webpack-plugin'
Named export (not default) in both ESM and CommonJS.
YarnCheck
const { YarnCheck } = require('yarn-check-webpack-plugin')
CommonJS require also supported.
YarnCheckOptions
import { YarnCheckOptions } from 'yarn-check-webpack-plugin'
Type import available.

Basic setup showing CommonJS require, plugin instantiation with optional config (rootDirectory and exclude), and conditional 'forceKill' option.

// webpack.config.js const { YarnCheck } = require('yarn-check-webpack-plugin'); module.exports = { // ... other config plugins: [ new YarnCheck({ rootDirectory: __dirname, exclude: /some-package/ }) ] };
Debug
Known issues
deprecatedyarn check --integtrity has been removed in Yarn 2+ (Berry). The plugin will not work with Yarn >=2.
fix
Use yarn-plugin or upgrade to a tool like 'check-dependencies', or stay on Yarn Classic.
affects: >=2.0.0-yarn
breakingIn version 1.2.0, the 'forceKill' option was added. If you used an earlier version, your config object might be missing this property – safe to ignore.
fix
Add 'forceKill' property if needed, otherwise it's optional.
affects: <1.2.0
gotchaThe plugin only runs when yarn.lock is present; if using npm or pnpm, it will silently no-op.
fix
Use the appropriate plugin for your package manager (e.g., npm-check-webpack-plugin).
affects: >=1.0.0
gotchaThe plugin runs a spawn of 'yarn check' on every compilation. This can add overhead in large projects.
fix
Consider using a watch mode filter or only run in development.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'yarn-check-webpack-plugin'
Package not installed.
fix
yarn add -D yarn-check-webpack-plugin
TypeError: YarnCheck is not a constructor
Default import used instead of named import.
fix
Use { YarnCheck } from 'yarn-check-webpack-plugin'
Missing packages: \n - lodash\nPlease run `yarn install --check-files` to update.
A package is missing from node_modules.
fix
Run 'yarn install --check-files' to restore missing packages.
Upgrade
Version history
1.2.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
OpenAI (training)
1
Resources
yarn-check-webpack-plugin — npm install yarn-check-webpack-plugin · libregistry