message: scripts/api-extractor: log instructions after run is complete to avoid race
diff: @@ -166,6 +166,8 @@ async function runApiExtraction({
  // Message verbosity can't be configured, so just skip the check instead
  (Extractor as any)._checkCompilerCompatibility = () => {};
  + let shouldLogInstructions = false;
  +
  // Invoke API Extractor
  const extractorResult = Extractor.invoke(extractorConfig, {
  localBuild: isLocalBuild,
  @@ -177,6 +179,14 @@ async function runApiExtraction({
  'You have changed the public API signature for this project.',
  )
  ) {
  + shouldLogInstructions = true;
  + }
  + },
  + compilerState,
  + });
  +
  + if (!extractorResult.succeeded) {
  + if (shouldLogInstructions) {
  console.log('');
  console.log(
  '*************************************************************************************',
  @@ -192,11 +202,6 @@ async function runApiExtraction({
  );
  console.log('');
  }
  - },
  - compilerState,
  - });
  -
  - if (!extractorResult.succeeded) {
  throw new Error(
  `API Extractor completed with ${extractorResult.errorCount} errors` +
  ` and ${extractorResult.warningCount} warnings`,
  