Skip to content

Commit e19d592

Browse files
committed
feat(test): test update script
1 parent c68c775 commit e19d592

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generate_schemas.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ const glob = require("glob");
44
const process = require("process");
55

66
const findDirectoryPath = (targetDirectoryName) => {
7+
console.log("targetDirectoryName", targetDirectoryName);
78
const pathToCheck = path.join(process.cwd(), targetDirectoryName);
9+
console.log("pathToCheck", process.cwd(), pathToCheck);
810
const folders = fs
911
.readdirSync(pathToCheck, { withFileTypes: true })
10-
.filter((folder) => folder.isDirectory())
12+
.filter(
13+
(folder) => folder.isDirectory() && !folder.name.endsWith(".egg-info")
14+
)
1115
.map((folder) => ({
1216
name: folder.name,
1317
path: path.join(pathToCheck, folder.name),
1418
}));
19+
console.log("folders", folders);
1520
const routesDirectory = path.join(folders[0].path, "routes");
1621
return [routesDirectory, folders[0].name];
1722
};

0 commit comments

Comments
 (0)