Skip to content

Commit

Permalink
Make name key Composer 2.0 compatible (#48)
Browse files Browse the repository at this point in the history
- Uppercase characters in `name` cause a deprecation warning (or error in 2.0).
- This commit coerces the developer name to lowercase within `name`.
- Plugin name is already coerced to lowercase elsewhere.
  • Loading branch information
Nathan Parsons authored May 18, 2020
1 parent d330a1a commit 922169f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/plugin/blank/composer.json.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set githubid = component.author.githubid ?: component.author.name|hyphenize -%}
{
"name": "{{ githubid }}/{{ component.name|hyphenize }}",
"name": "{{ githubid|lower }}/{{ component.name|hyphenize }}",
"type": "grav-plugin",
"description": "{{ component.description }}",
"keywords": ["plugin"],
Expand All @@ -27,4 +27,4 @@
"php": "7.1.3"
}
}
}
}

0 comments on commit 922169f

Please sign in to comment.