Skip to content

PlayForm/Adapt

Repository files navigation

🔌 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.