Skip to content

Commit

Permalink
Remove peerDependencies and move to internal plugin compatibility che…
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Oct 7, 2021
1 parent 2e2af11 commit 450fefe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
const pkg = require("./package.json");
const chalk = require("chalk");
const inclusiveLanguage = require("./inclusive-language");

module.exports = {
initArguments: {},
configFunction: function(eleventyConfig, options = {}) {
try {
eleventyConfig.versionCheck(pkg["11ty"].compatibility);
} catch(e) {
console.log( `WARN: Eleventy Plugin (${pkg.name}) Compatibility: ${e.message}` );
}

// TODO move this into default argument when 0.5.5 or newer is released
/* {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"url": "https://github.com/11ty/eleventy-plugin-inclusive-language/issues"
},
"homepage": "https://www.11ty.dev/docs/plugins/inclusive-language/",
"peerDependencies": {
"@11ty/eleventy": ">=0.6.0"
"11ty": {
"compatibility": ">=0.6"
},
"devDependencies": {
"ava": "^3.15.0"
Expand Down

0 comments on commit 450fefe

Please sign in to comment.