@tinacms/cli 1.6.2 → 1.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.
- package/dist/index.js +9 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
31
31
|
var import_clipanion8 = require("clipanion");
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "1.6.
|
|
34
|
+
var version = "1.6.4";
|
|
35
35
|
|
|
36
36
|
// src/next/commands/dev-command/index.ts
|
|
37
37
|
var import_clipanion2 = require("clipanion");
|
|
@@ -1633,6 +1633,7 @@ var loadGraphQLDocuments = async (globPath) => {
|
|
|
1633
1633
|
// src/next/codegen/index.ts
|
|
1634
1634
|
var import_esbuild2 = require("esbuild");
|
|
1635
1635
|
var import_graphql7 = require("@tinacms/graphql");
|
|
1636
|
+
var import_normalize_path3 = __toESM(require("normalize-path"));
|
|
1636
1637
|
var TINA_HOST = "content.tinajs.io";
|
|
1637
1638
|
var Codegen = class {
|
|
1638
1639
|
constructor({
|
|
@@ -1905,7 +1906,9 @@ export default databaseClient;
|
|
|
1905
1906
|
const apiURL = this.getApiURL();
|
|
1906
1907
|
const clientString = `import { createClient } from "tinacms/dist/client";
|
|
1907
1908
|
import { queries } from "./types";
|
|
1908
|
-
export const client = createClient({ ${this.noClientBuildCache === false ? `cacheDir: '${
|
|
1909
|
+
export const client = createClient({ ${this.noClientBuildCache === false ? `cacheDir: '${(0, import_normalize_path3.default)(
|
|
1910
|
+
this.configManager.generatedCachePath
|
|
1911
|
+
)}', ` : ""}url: '${apiURL}', token: '${token}', queries, ${errorPolicy ? `errorPolicy: '${errorPolicy}'` : ""} });
|
|
1909
1912
|
export default client;
|
|
1910
1913
|
`;
|
|
1911
1914
|
return { apiURL, clientString };
|
|
@@ -5277,7 +5280,10 @@ var generateCollectionString = (args) => {
|
|
|
5277
5280
|
if (args.collections) {
|
|
5278
5281
|
return args.collections;
|
|
5279
5282
|
}
|
|
5280
|
-
|
|
5283
|
+
let extraTinaCollections = (_b = (_a = args.config.authProvider) == null ? void 0 : _a.extraTinaCollections) == null ? void 0 : _b.join(",\n");
|
|
5284
|
+
if (extraTinaCollections) {
|
|
5285
|
+
extraTinaCollections = extraTinaCollections + ",";
|
|
5286
|
+
}
|
|
5281
5287
|
const baseCollections = `[
|
|
5282
5288
|
${extraTinaCollections || ""}
|
|
5283
5289
|
{
|
|
@@ -5290,7 +5296,6 @@ var generateCollectionString = (args) => {
|
|
|
5290
5296
|
const nextExampleCollection = `[
|
|
5291
5297
|
${extraTinaCollections || ""}
|
|
5292
5298
|
{
|
|
5293
|
-
${extraTinaCollections ? `${extraTinaCollections},` : ""}
|
|
5294
5299
|
name: 'post',
|
|
5295
5300
|
label: 'Posts',
|
|
5296
5301
|
path: 'content/posts',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"vite": "^4.3.9",
|
|
86
86
|
"yup": "^0.32.9",
|
|
87
87
|
"zod": "^3.14.3",
|
|
88
|
-
"@tinacms/app": "2.1.
|
|
88
|
+
"@tinacms/app": "2.1.4",
|
|
89
|
+
"@tinacms/graphql": "1.5.2",
|
|
89
90
|
"@tinacms/metrics": "1.0.5",
|
|
90
91
|
"@tinacms/schema-tools": "1.6.2",
|
|
91
|
-
"
|
|
92
|
-
"tinacms": "2.2.2",
|
|
92
|
+
"tinacms": "2.2.4",
|
|
93
93
|
"@tinacms/search": "1.0.28"
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": {
|