Switch to using globby library

Signed-off-by: Gavin Clarke <431018+gavinclarkeuk@users.noreply.github.com>
This commit is contained in:
Gavin Clarke
2025-02-11 10:42:10 +00:00
committed by GitHub
parent 3d6ef79fb6
commit f0f7e4a0a6
4 changed files with 3 additions and 4 deletions
@@ -157,6 +157,7 @@ Gitiles
gitlab
GitLab
globals
globbing
Gource
Grafana
graphql
-1
View File
@@ -93,7 +93,6 @@
"concat-stream": "^2.0.0",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"fast-glob": "^3.3.3",
"fs-extra": "^11.2.0",
"globby": "^11.0.0",
"isbinaryfile": "^5.0.0",
@@ -18,7 +18,7 @@ import { createTemplateAction } from '@backstage/plugin-scaffolder-node';
import { InputError } from '@backstage/errors';
import { resolveSafeChildPath } from '@backstage/backend-plugin-api';
import fs from 'fs-extra';
import fg from 'fast-glob';
import globby from 'globby';
import { examples } from './delete.examples';
/**
@@ -54,7 +54,7 @@ export const createFilesystemDeleteAction = () => {
for (const file of ctx.input.files) {
const safeFilepath = resolveSafeChildPath(ctx.workspacePath, file);
const resolvedPaths = await fg(safeFilepath, {
const resolvedPaths = await globby(safeFilepath, {
cwd: ctx.workspacePath,
absolute: true,
});
-1
View File
@@ -7753,7 +7753,6 @@ __metadata:
esbuild: ^0.24.0
express: ^4.17.1
express-promise-router: ^4.1.0
fast-glob: ^3.3.3
fs-extra: ^11.2.0
globby: ^11.0.0
isbinaryfile: ^5.0.0