(version, compatibleRange)
| 42 | } |
| 43 | |
| 44 | static satisfies(version, compatibleRange) { |
| 45 | return semver.satisfies( |
| 46 | Compatibility.normalizeIdentifier(version), |
| 47 | Compatibility.normalizeIdentifier(compatibleRange), |
| 48 | { |
| 49 | includePrerelease: true, |
| 50 | }, |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | getErrorMessage() { |
| 55 | return `We found Eleventy version '${pkg.version}' which does not meet the required version range: '${this.compatibleRange}'. Use \`npm install @11ty/eleventy\` to upgrade your local project to the latest Eleventy version (or \`npm install @11ty/eleventy -g\` to upgrade the globally installed version).`; |
no test coverage detected