Merge pull request #18757 from SonilPro/options-fix

fix linguist plugin options
This commit is contained in:
Ben Lambert
2023-07-24 13:35:54 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-linguist-backend': patch
---
Fixed bug in LinguistBackendClient.ts file where if the linguistJsOptions is specified and sent over to the linguist-js package it would get changed (another attribute would be added) causing future entities of the batch to fail with an error
@@ -261,7 +261,7 @@ export class LinguistBackendClient implements LinguistBackendApi {
/** @internal */
async getLinguistResults(dir: string): Promise<Results> {
const results = await linguist(dir, this.linguistJsOptions);
const results = await linguist(dir, { ...this.linguistJsOptions });
return results;
}
}