scripts/version-placeholders.js
function buildPlaceholderFindCommand(packageDir) {
  if (platform() === 'win32') {
    return {
      binary: 'findstr',
      args: ['/msi', `${materialVersionPlaceholderText} ${ngVersionPlaceholderText} ${versionPlaceholderText}`, `${packageDir}\\*`]
    };
  } else {
    return {
      binary: 'grep',
      args: ['-ril', `${materialVersionPlaceholderText}\\|${ngVersionPlaceholderText}\\|${versionPlaceholderText}`, packageDir]
    };
  }
}
function buildPlaceholderFindCommand(packageDir) {
  if (platform() === 'win32') {
    return {
      binary: 'findstr',
      args: ['/msi', `${materialVersionPlaceholderText} ${ngVersionPlaceholderText} ${versionPlaceholderText}`, `${packageDir}\\*`]
    };
  } else {
    return {
      binary: 'grep',
      args: ['-ril', `${materialVersionPlaceholderText}\\|${ngVersionPlaceholderText}\\|${versionPlaceholderText}`, packageDir]
    };
  }
}
function buildPlaceholderFindCommand ( packageDir ) { if ( platform ( ) === 'win32' ) { return { binary : 'findstr' , args : [ '/msi' , ` ${ materialVersionPlaceholderText } ${ ngVersionPlaceholderText } ${ versionPlaceholderText } ` , ` ${ packageDir } \\ ` ] } ; } else { return { binary : 'grep' , args : [ '-ril' , ` ${ materialVersionPlaceholderText } \\ ${ ngVersionPlaceholderText } \\ ${ versionPlaceholderText } ` , packageDir ] } ; } }
Builds the command that will be executed to find all files containing version placeholders.
Builds the command that will be executed to find all files containing version placeholders .