@tinacms/schema-tools 2.7.3 → 2.7.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 +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1711,7 +1711,10 @@ class TinaSchema {
1711
1711
  if (!canonicalFilepath.endsWith(`.gitkeep.${collection.format || "md"}`) && fileExtension !== (collection.format || "md")) {
1712
1712
  return false;
1713
1713
  }
1714
- if (((_a = collection == null ? void 0 : collection.match) == null ? void 0 : _a.include) || ((_b = collection == null ? void 0 : collection.match) == null ? void 0 : _b.exclude)) {
1714
+ const isFolderPlaceholder = canonicalFilepath.endsWith(
1715
+ `.gitkeep.${collection.format || "md"}`
1716
+ );
1717
+ if (!isFolderPlaceholder && (((_a = collection == null ? void 0 : collection.match) == null ? void 0 : _a.include) || ((_b = collection == null ? void 0 : collection.match) == null ? void 0 : _b.exclude))) {
1715
1718
  const matches = this.getMatches({ collection });
1716
1719
  const match = picomatch$1.isMatch(canonicalFilepath, matches);
1717
1720
  if (!match) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
3
  "type": "module",
4
- "version": "2.7.3",
4
+ "version": "2.7.4",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -24,7 +24,7 @@
24
24
  "ts-jest": "^29.2.5",
25
25
  "typescript": "^5.7.3",
26
26
  "yup": "^1.6.1",
27
- "@tinacms/scripts": "1.6.0"
27
+ "@tinacms/scripts": "1.6.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.14.0",