Skip to content

Commit 4fa2d86

Browse files
committed
fix isFrameworkDir
1 parent 5f91458 commit 4fa2d86

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

server/src/frameworks/frameworksServices.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { buildFrameworkVersionString, copyProps } from "./helpers/index.js";
66

77
const keyedTypes = ["keyed", "non-keyed"];
88

9-
const exclusionDirectories = [".Ds_Store"];
10-
119
class PackageJSONProvider {
1210
#frameworksDir;
1311

@@ -73,7 +71,7 @@ class PackageJSONProvider {
7371
* @param {string} framework
7472
* @returns {boolean}
7573
*/
76-
async function isFrameworkDir(keyedDir, framework) {
74+
function isFrameworkDir(keyedDir, framework) {
7775
const frameworkPath = path.resolve(frameworksDirectory, keyedDir, framework);
7876
const packageJSONPath = path.resolve(frameworkPath, "package.json");
7977
const packageLockJSONPath = path.resolve(frameworkPath, "package-lock.json");
@@ -161,11 +159,7 @@ export async function loadFrameworkVersions() {
161159
path.resolve(frameworksDirectory, keyedType),
162160
);
163161

164-
const filteredDirectories = directories.filter(
165-
(directory) => !exclusionDirectories.includes(directory),
166-
);
167-
168-
for (const directory of filteredDirectories) {
162+
for (const directory of directories) {
169163
if (!isFrameworkDir(keyedType, directory)) {
170164
continue;
171165
}

0 commit comments

Comments
 (0)