@tinacms/cli 2.1.4 → 2.1.5
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 +21 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Cli, Builtins } from "clipanion";
|
|
3
3
|
|
|
4
4
|
// package.json
|
|
5
|
-
var version = "2.1.
|
|
5
|
+
var version = "2.1.5";
|
|
6
6
|
|
|
7
7
|
// src/next/commands/dev-command/index.ts
|
|
8
8
|
import path8 from "path";
|
|
@@ -487,15 +487,26 @@ var Codegen = class {
|
|
|
487
487
|
"_graphql.json",
|
|
488
488
|
JSON.stringify(this.graphqlSchemaDoc)
|
|
489
489
|
);
|
|
490
|
-
const
|
|
491
|
-
if (search?.tina) {
|
|
492
|
-
const { indexerToken, ...safeSearchConfig } = search.tina;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
490
|
+
const config2 = this.tinaSchema.schema.config;
|
|
491
|
+
if (config2?.search?.tina) {
|
|
492
|
+
const { indexerToken, ...safeSearchConfig } = config2.search.tina;
|
|
493
|
+
const newConfig = {};
|
|
494
|
+
for (const key of Object.keys(config2)) {
|
|
495
|
+
if (key === "search") {
|
|
496
|
+
newConfig.search = { tina: safeSearchConfig };
|
|
497
|
+
} else {
|
|
498
|
+
newConfig[key] = config2[key];
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
this.tinaSchema.schema.config = newConfig;
|
|
502
|
+
} else if (config2?.search) {
|
|
503
|
+
const newConfig = {};
|
|
504
|
+
for (const key of Object.keys(config2)) {
|
|
505
|
+
if (key !== "search") {
|
|
506
|
+
newConfig[key] = config2[key];
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
this.tinaSchema.schema.config = newConfig;
|
|
499
510
|
}
|
|
500
511
|
await this.writeConfigFile(
|
|
501
512
|
"_schema.json",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.5",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"vite": "^4.5.9",
|
|
89
89
|
"yup": "^1.6.1",
|
|
90
90
|
"zod": "^3.24.2",
|
|
91
|
+
"@tinacms/app": "2.3.24",
|
|
91
92
|
"@tinacms/graphql": "2.1.1",
|
|
92
93
|
"@tinacms/metrics": "2.0.1",
|
|
93
|
-
"@tinacms/app": "2.3.24",
|
|
94
94
|
"@tinacms/schema-tools": "2.5.0",
|
|
95
95
|
"@tinacms/search": "1.2.2",
|
|
96
96
|
"tinacms": "3.4.1"
|