repo-tools: stop ignoring BUI
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/repo-tools': patch
|
||||
---
|
||||
|
||||
Removed build-in ignore of the `packages/canon` package for knip reports.
|
||||
@@ -21,11 +21,6 @@ import fs from 'fs-extra';
|
||||
import type { KnipConfig } from 'knip';
|
||||
import { createBinRunner } from '../util';
|
||||
|
||||
// Ignore these
|
||||
const ignoredPackages = [
|
||||
'packages/ui', // storybook config is different from the rest
|
||||
];
|
||||
|
||||
interface KnipExtractionOptions {
|
||||
packageDirs: string[];
|
||||
isLocalBuild: boolean;
|
||||
@@ -104,10 +99,7 @@ async function handlePackage({
|
||||
isLocalBuild,
|
||||
}: KnipPackageOptions) {
|
||||
console.log(`## Processing ${packageDir}`);
|
||||
if (ignoredPackages.includes(packageDir)) {
|
||||
console.log(`Skipping ${packageDir}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const fullDir = cliPaths.resolveTargetRoot(packageDir);
|
||||
const reportPath = resolvePath(fullDir, 'knip-report.md');
|
||||
const run = createBinRunner(cliPaths.targetRoot, '');
|
||||
|
||||
Reference in New Issue
Block a user