# @atlaskit/enforce-peer-dependencies

> Enforce the version of peer dependnecies

Latest version **1.0.3** (published 2023-07-21) · 0 weekly downloads

## Install

```sh
npm install @atlaskit/enforce-peer-dependencies
pnpm add @atlaskit/enforce-peer-dependencies
yarn add @atlaskit/enforce-peer-dependencies
bun add @atlaskit/enforce-peer-dependencies
```

Provides the command `enforce-peer-dependencies`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-07-21 |
| First published | 2023-07-17 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atlassian Pty Ltd |
| Maintainers | atlaskit |

## Links

- npm: https://www.npmjs.com/package/@atlaskit/enforce-peer-dependencies
- Repository: https://bitbucket.org/atlassian/atlassian-frontend
- Homepage: https://bitbucket.org/atlassian/atlassian-frontend#readme
- Issues: https://bitbucket.org/atlassian/atlassian-frontend/issues
- npm.io page: https://npm.io/package/@atlaskit/enforce-peer-dependencies

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^15.3.1
- [semver](https://npm.io/package/semver.md) ^7.5.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [@atlassian/repo-feature-flags](https://npm.io/package/@atlassian/repo-feature-flags.md) *

## Recent versions

- 1.0.3 (latest) — 2023-07-21
- 1.0.2 — 2023-07-20
- 1.0.1 — 2023-07-17
- 1.0.0 — 2023-07-17
- 0.0.1 — 2023-07-17

## README

# @atlaskit/enforce-peer-dependencies

A tool to enforce compatible versions of peer dependencies on selected packages.

## Usage

Simply add a postinstall script `"postinstall": "npx @atlaskit/enforce-peer-dependencies"` inside `package.json` of a package for the enforcement.

When this package is installed on the consumer's side, it will check all its peer dependencies and fail the install if any unmet version is found.

## Options

`--internal-packages`: Only check atlassian, atlaskit or atlassiansox scoped peer dependencies

`--verbose`: Show logs on stdout in CI for easier debugging. Since logs in postinstall scripts are suppressed by default, run `yarn --verbose` in Yarn 1 or `yarn --inline-builds` in Yarn 3 if you want to view logs when running on local.

---
_Source: https://npm.io/package/@atlaskit/enforce-peer-dependencies · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
