Skip to content

Files

Latest commit

Jan 29, 2025
0120b2b · Jan 29, 2025

History

History
50 lines (35 loc) · 842 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 842 Bytes

Adapt 🔌

Adapt modifies the package.json on preinstall and allows you to choose a strategy when using a peerDependency in an upstream or downstream packages to avoid inconsistencies.

Installation 🚀

To install Adapt, run the following from your project directory and follow the prompts:

Using NPM:

npx astro add @playform/adapt

Using Yarn:

yarn astro add @playform/adapt

Using PNPM:

pnpx astro add @playform/adapt

Getting started

Place Adapt in your package.json dependencies and configure the preinstall hook like so:

{
	"scripts": {
		"preinstall": "Adapt"
	},
	"dependencies": {
		"@playform/adapt": "0.0.1"
	}
}

Changelog

See CHANGELOG.md for a history of changes to this component.