Skip to content

Commit f4cbe47

Browse files
feat(GH action): test path.normalize
1 parent dd4a411 commit f4cbe47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generate_schemas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const outputFile = path.join(process.cwd(), "schemas.json");
2222

2323
function return_json_schema(directoryPath, folder_path, project_name) {
2424
const folders = fs
25-
.readdirSync(directoryPath, { withFileTypes: true })
25+
.readdirSync(path.normalize(directoryPath), { withFileTypes: true })
2626
.filter((folder) => folder.isDirectory())
2727
.map((folder) => ({
2828
name: folder.name,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)