@@ -209,40 +209,40 @@ export class Extractor {
209209
210210 if ( extractorConfig . apiReportEnabled ) {
211211 const actualApiReportPath : string = extractorConfig . reportTempFilePath ;
212- const actualApiReviewShortPath : string = extractorConfig . _getShortFilePath ( extractorConfig . reportTempFilePath ) ;
212+ const actualApiReportShortPath : string = extractorConfig . _getShortFilePath ( extractorConfig . reportTempFilePath ) ;
213213
214- const expectedApiReviewPath : string = extractorConfig . reportFilePath ;
215- const expectedApiReviewShortPath : string = extractorConfig . _getShortFilePath ( extractorConfig . reportFilePath ) ;
214+ const expectedApiReportPath : string = extractorConfig . reportFilePath ;
215+ const expectedApiReportShortPath : string = extractorConfig . _getShortFilePath ( extractorConfig . reportFilePath ) ;
216216
217- const actualApiReviewContent : string = ReviewFileGenerator . generateReviewFileContent ( collector ) ;
217+ const actualApiReportContent : string = ReviewFileGenerator . generateReviewFileContent ( collector ) ;
218218
219219 // Write the actual file
220- FileSystem . writeFile ( actualApiReportPath , actualApiReviewContent , {
220+ FileSystem . writeFile ( actualApiReportPath , actualApiReportContent , {
221221 ensureFolderExists : true ,
222222 convertLineEndings : NewlineKind . CrLf
223223 } ) ;
224224
225225 // Compare it against the expected file
226- if ( FileSystem . exists ( expectedApiReviewPath ) ) {
227- const expectedApiReviewContent : string = FileSystem . readFile ( expectedApiReviewPath ) ;
226+ if ( FileSystem . exists ( expectedApiReportPath ) ) {
227+ const expectedApiReportContent : string = FileSystem . readFile ( expectedApiReportPath ) ;
228228
229- if ( ! ReviewFileGenerator . areEquivalentApiFileContents ( actualApiReviewContent , expectedApiReviewContent ) ) {
229+ if ( ! ReviewFileGenerator . areEquivalentApiFileContents ( actualApiReportContent , expectedApiReportContent ) ) {
230230 if ( ! localBuild ) {
231231 // For production, issue a warning that will break the CI build.
232232 messageRouter . logWarning ( ConsoleMessageId . ApiReportNotCopied ,
233233 'You have changed the public API signature for this project.'
234234 // @microsoft /gulp-core-build seems to run JSON.stringify() on the error messages for some reason,
235235 // so try to avoid escaped characters:
236- + ` Please overwrite ${ expectedApiReviewShortPath } with a`
237- + ` copy of ${ actualApiReviewShortPath } `
236+ + ` Please overwrite ${ expectedApiReportShortPath } with a`
237+ + ` copy of ${ actualApiReportShortPath } `
238238 + ' and then request an API review. See the Git repository README.md for more info.' ) ;
239239 } else {
240240 // For a local build, just copy the file automatically.
241241 messageRouter . logWarning ( ConsoleMessageId . ApiReportCopied ,
242242 'You have changed the public API signature for this project.'
243- + ` Updating ${ expectedApiReviewShortPath } ` ) ;
243+ + ` Updating ${ expectedApiReportShortPath } ` ) ;
244244
245- FileSystem . writeFile ( expectedApiReviewPath , actualApiReviewContent , {
245+ FileSystem . writeFile ( expectedApiReportPath , actualApiReportContent , {
246246 ensureFolderExists : true ,
247247 convertLineEndings : NewlineKind . CrLf
248248 } ) ;
@@ -251,15 +251,15 @@ export class Extractor {
251251 apiReportChanged = true ;
252252 } else {
253253 messageRouter . logVerbose ( ConsoleMessageId . ApiReportUnchanged ,
254- `The API signature is up to date: ${ actualApiReviewShortPath } ` ) ;
254+ `The API signature is up to date: ${ actualApiReportShortPath } ` ) ;
255255 }
256256 } else {
257257 // NOTE: This warning seems like a nuisance, but it has caught genuine mistakes.
258258 // For example, when projects were moved into category folders, the relative path for
259259 // the API review files ended up in the wrong place.
260260 messageRouter . logError ( ConsoleMessageId . ApiReportMissing , `The API review file has not been set up.`
261- + ` Do this by copying ${ actualApiReviewShortPath } `
262- + ` to ${ expectedApiReviewShortPath } and committing it.` ) ;
261+ + ` Do this by copying ${ actualApiReportShortPath } `
262+ + ` to ${ expectedApiReportShortPath } and committing it.` ) ;
263263 }
264264 }
265265
0 commit comments