Skip to content

Commit

Permalink
[#266] Set minimum-stability to true and added docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed May 17, 2024
1 parent 4013e3f commit 20a24d4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@ cd some-dir
composer require drupal/devel
```

By default, this project is set to install only stable releases of dependencies,
as specified by `"minimum-stability": "stable"` in `composer.json`. If you need
to use non-stable releases (e.g., `alpha`, `beta`, `RC`), you can modify the
version constraint to allow for such versions. For instance, to require a beta
version of a module:

```bash
composer require drupal/devel:1.0.0-beta1
```

Alternatively, you can globally adjust the stability settings by modifying
`composer.json` to include the desired stability level and explicitly allow it:

```json
{
"minimum-stability": "beta",
"prefer-stable": true
}
```

This configuration ensures that stable releases are preferred, but allows the
installation of non-stable packages when necessary.

### Adding libraries

You can manage front-end asset libraries with Composer thanks to the
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"url": "https://asset-packagist.org"
}
],
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"classmap": [
Expand Down

0 comments on commit 20a24d4

Please sign in to comment.