Switch to using globby library
Signed-off-by: Gavin Clarke <431018+gavinclarkeuk@users.noreply.github.com>
This commit is contained in:
@@ -157,6 +157,7 @@ Gitiles
|
||||
gitlab
|
||||
GitLab
|
||||
globals
|
||||
globbing
|
||||
Gource
|
||||
Grafana
|
||||
graphql
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user