lib/load-instructions.js
function defaultInstructions (format) {
  // start with empty instructions
  let instructions = emptyInstructions('_defaults', format);

  // extend with the default recipe, if it exists for the target extension
  const recipeFilePath = path.join(
    __dirname,
    '..',
    '_defaults',
    `recipe.${format}.json`
  );
  if (fs.existsSync(recipeFilePath)) {
    instructions = Object.assign(
      instructions,
      JSON.parse(fs.readFileSync(recipeFilePath, 'utf8'))
    );
  }
  return instructions;
}
function defaultInstructions (format) {
  // start with empty instructions
  let instructions = emptyInstructions('_defaults', format);

  // extend with the default recipe, if it exists for the target extension
  const recipeFilePath = path.join(
    __dirname,
    '..',
    '_defaults',
    `recipe.${format}.json`
  );
  if (fs.existsSync(recipeFilePath)) {
    instructions = Object.assign(
      instructions,
      JSON.parse(fs.readFileSync(recipeFilePath, 'utf8'))
    );
  }
  return instructions;
}
function defaultInstructions ( format ) { // start with empty instructions let instructions = emptyInstructions ( '_defaults' , format ) ; // extend with the default recipe, if it exists for the target extension const recipeFilePath = path . join ( __dirname , '..' , '_defaults' , ` ${ format } ` ) ; if ( fs . existsSync ( recipeFilePath ) ) { instructions = Object . assign ( instructions , JSON . parse ( fs . readFileSync ( recipeFilePath , 'utf8' ) ) ) ; } return instructions ; }
default recipe instruction
default recipe instruction