@mintlify/common 1.0.633 → 1.0.635
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fs/index.d.ts
CHANGED
package/dist/fs/index.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const WINDOWS_SEPARATOR = '\\';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a file path to use POSIX forward slashes.
|
|
4
|
+
* On Windows, `path.relative()` and similar return backslashes;
|
|
5
|
+
* this utility normalizes them.
|
|
6
|
+
*/
|
|
7
|
+
export function toPosixPath(filePath) {
|
|
8
|
+
return filePath.replaceAll(WINDOWS_SEPARATOR, '/');
|
|
9
|
+
}
|