🔌 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.
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
Place Adapt
in your package.json
dependencies
and configure the
preinstall
hook like so:
{
"scripts": {
"preinstall": "Adapt"
},
"dependencies": {
"@playform/adapt": "0.0.1"
}
}
See CHANGELOG.md
for a history of changes to this component.