@tinacms/schema-tools 2.7.3 → 2.8.0
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/index.js +4 -1
- package/dist/types/index.d.ts +17 -0
- 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
|
-
|
|
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/dist/types/index.d.ts
CHANGED
|
@@ -563,6 +563,23 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
563
563
|
* If your site will be served at a sub-path like `my-domain.com/my-site`, provide `"my-site"`
|
|
564
564
|
*/
|
|
565
565
|
basePath?: string;
|
|
566
|
+
/**
|
|
567
|
+
* Additional npm packages to externalize when bundling `tina/database.ts`.
|
|
568
|
+
*
|
|
569
|
+
* Tina automatically externalizes a known-good baseline (currently `better-sqlite3`).
|
|
570
|
+
* Use this list for native modules or packages outside that baseline that cannot be
|
|
571
|
+
* bundled by esbuild — for example, custom database adapters that ship native bindings.
|
|
572
|
+
*
|
|
573
|
+
* Externalized packages must be installed in your project's `node_modules` so Node can
|
|
574
|
+
* resolve them at runtime.
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* build: {
|
|
578
|
+
* // ...other build options
|
|
579
|
+
* externalDependencies: ['my-custom-native-adapter'],
|
|
580
|
+
* }
|
|
581
|
+
*/
|
|
582
|
+
externalDependencies?: string[];
|
|
566
583
|
};
|
|
567
584
|
/**
|
|
568
585
|
* Configuration for the local development server (`tinacms dev`).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.0",
|
|
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.
|
|
27
|
+
"@tinacms/scripts": "1.6.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.14.0",
|