Skip to content

Commit 8083ad5

Browse files
Merge pull request #190 from HubSpot/br/use-path-sep
fix: Use path.sep to fix path check on Windows
2 parents 598faa2 + 7b812cc commit 8083ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cms/handleFieldsJS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function isConvertableFieldJs(
164164
return !!(
165165
convertFields &&
166166
allowedFieldsNames.includes(baseName) &&
167-
(inModuleFolder || relativePath == '/')
167+
(inModuleFolder || relativePath == path.sep)
168168
);
169169
}
170170

0 commit comments

Comments
 (0)