Skip to content

Commit

Permalink
Merge pull request #172 from Financial-Times/add-volta-to-engines-search
Browse files Browse the repository at this point in the history
Also search for Volta object when searching for engines value
  • Loading branch information
jkerr321 authored Feb 15, 2023
2 parents 5af535e + c77eb6b commit 44cb6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ebi/package-engines-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getJson = ({ filepath, repository }) => data => {
};

const throwIfNoEngines = ({ filepath, repository }) => (json = {}) => {
const { engines } = json;
const engines = json.engines || json.volta;
if (!engines) {
throw new Error(
`INFO: engines field not found in '${filepath}' in '${repository}'`
Expand Down

0 comments on commit 44cb6b5

Please sign in to comment.