diff --git a/packages/api-page-builder/src/graphql/crud/install/utils/downloadInstallFiles.ts b/packages/api-page-builder/src/graphql/crud/install/utils/downloadInstallFiles.ts index 5a5972774a6..692d9fe5cd0 100644 --- a/packages/api-page-builder/src/graphql/crud/install/utils/downloadInstallFiles.ts +++ b/packages/api-page-builder/src/graphql/crud/install/utils/downloadInstallFiles.ts @@ -20,7 +20,7 @@ function extractZip(zipPath: string, dir: string): Promise { } export function deleteFile(path: string): Promise { - return fs.unlink(path); + return fs.remove(path); } const INSTALL_DIR = "/tmp"; diff --git a/packages/cli-plugin-scaffold-extensions/src/generators/utils/getExtensionsFromFilesystem.ts b/packages/cli-plugin-scaffold-extensions/src/generators/utils/getExtensionsFromFilesystem.ts index 34cf42efc4a..a7e1f9794db 100644 --- a/packages/cli-plugin-scaffold-extensions/src/generators/utils/getExtensionsFromFilesystem.ts +++ b/packages/cli-plugin-scaffold-extensions/src/generators/utils/getExtensionsFromFilesystem.ts @@ -12,7 +12,9 @@ export type ExtensionWorkspace = { }; export const getExtensionsFromFilesystem = (): ExtensionWorkspace[] => { - const workspaces = glob.sync(`extensions/**/package.json`); + const workspaces = glob.sync(`extensions/**/package.json`, { + ignore: ["**/node_modules/**"] + }); return workspaces .map(pkg => ({ path: path.dirname(pkg),