Merge pull request #18757 from SonilPro/options-fix
fix linguist plugin options
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user