@content-collections/core 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -523,8 +523,8 @@ function createSynchronizer(readCollectionFile, collections, baseDirectory = "."
523
523
  const resolvedCollectionPath = path4.resolve(baseDirectory, collectionPath);
524
524
  const resolvedFilePath = path4.resolve(filePath);
525
525
  let relativePath = resolvedFilePath.slice(resolvedCollectionPath.length);
526
- if (relativePath.startsWith("/")) {
527
- relativePath = relativePath.slice(1);
526
+ if (relativePath.startsWith(path4.sep)) {
527
+ relativePath = relativePath.slice(path4.sep.length);
528
528
  }
529
529
  return relativePath;
530
530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@content-collections/core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",