@tinacms/cli 1.6.11 → 1.6.12

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 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.11";
34
+ var version = "1.6.12";
35
35
 
36
36
  // src/next/commands/dev-command/index.ts
37
37
  var import_clipanion2 = require("clipanion");
@@ -2209,7 +2209,7 @@ var BaseCommand = class extends import_clipanion.Command {
2209
2209
  pathFilter
2210
2210
  });
2211
2211
  const tinaPathUpdates = modified.filter(
2212
- (path13) => path13.startsWith(".tina/__generated__/_schema.json") || path13.startsWith("tina/tina-lock.json")
2212
+ (path14) => path14.startsWith(".tina/__generated__/_schema.json") || path14.startsWith("tina/tina-lock.json")
2213
2213
  );
2214
2214
  if (tinaPathUpdates.length > 0) {
2215
2215
  res = await database.indexContent({
@@ -2537,6 +2537,8 @@ DevCommand.usage = import_clipanion2.Command.Usage({
2537
2537
  var import_clipanion3 = require("clipanion");
2538
2538
  var import_progress2 = __toESM(require("progress"));
2539
2539
  var import_fs_extra7 = __toESM(require("fs-extra"));
2540
+ var import_crypto = __toESM(require("crypto"));
2541
+ var import_path6 = __toESM(require("path"));
2540
2542
  var import_graphql11 = require("@tinacms/graphql");
2541
2543
 
2542
2544
  // src/next/commands/build-command/server.ts
@@ -2839,6 +2841,13 @@ ${dangerText(e.message)}
2839
2841
  database,
2840
2842
  codegen2.productionUrl
2841
2843
  );
2844
+ await this.checkTinaSchema(
2845
+ configManager,
2846
+ database,
2847
+ codegen2.productionUrl,
2848
+ this.previewName,
2849
+ this.verbose
2850
+ );
2842
2851
  }
2843
2852
  await buildProductionSpa(configManager, database, codegen2.productionUrl);
2844
2853
  await import_fs_extra7.default.outputFile(
@@ -3148,6 +3157,63 @@ Additional info: Branch: ${config2.branch}, Client ID: ${config2.clientId} `;
3148
3157
  }
3149
3158
  }
3150
3159
  }
3160
+ async checkTinaSchema(configManager, database, apiURL, previewName, verbose) {
3161
+ const bar2 = new import_progress2.default(
3162
+ "Checking local Tina Schema matches server. :prog",
3163
+ 1
3164
+ );
3165
+ const { config: config2 } = configManager;
3166
+ const token = config2.token;
3167
+ const { clientId, branch, isLocalClient, host } = (0, import_schema_tools2.parseURL)(apiURL);
3168
+ if (isLocalClient || !host || !clientId || !branch) {
3169
+ if (verbose) {
3170
+ logger.info(logText("Not using Tina Cloud, skipping Tina Schema check"));
3171
+ }
3172
+ return;
3173
+ }
3174
+ const { tinaSchema: remoteTinaSchemaSha } = await fetchSchemaSha({
3175
+ url: `https://${host}/db/${clientId}/${previewName || branch}/schemaSha`,
3176
+ token
3177
+ });
3178
+ if (!remoteTinaSchemaSha) {
3179
+ bar2.tick({
3180
+ prog: "\u274C"
3181
+ });
3182
+ let errorMessage = `The remote Tina schema does not exist. Check indexing for this branch.`;
3183
+ if (config2 == null ? void 0 : config2.branch) {
3184
+ errorMessage += `
3185
+
3186
+ Additional info: Branch: ${config2.branch}, Client ID: ${config2.clientId} `;
3187
+ }
3188
+ throw new Error(errorMessage);
3189
+ }
3190
+ if (!database.bridge) {
3191
+ throw new Error(`No bridge configured`);
3192
+ }
3193
+ const localTinaSchema = JSON.parse(
3194
+ await database.bridge.get(
3195
+ import_path6.default.join(database.tinaDirectory, "__generated__", "_schema.json")
3196
+ )
3197
+ );
3198
+ localTinaSchema.version = void 0;
3199
+ const localTinaSchemaSha = import_crypto.default.createHash("sha256").update(JSON.stringify(localTinaSchema)).digest("hex");
3200
+ if (localTinaSchemaSha === remoteTinaSchemaSha) {
3201
+ bar2.tick({
3202
+ prog: "\u2705"
3203
+ });
3204
+ } else {
3205
+ bar2.tick({
3206
+ prog: "\u274C"
3207
+ });
3208
+ let errorMessage = `The local Tina schema doesn't match the remote Tina schema. Please push up your changes to GitHub to update your remote tina schema.`;
3209
+ if (config2 == null ? void 0 : config2.branch) {
3210
+ errorMessage += `
3211
+
3212
+ Additional info: Branch: ${config2.branch}, Client ID: ${config2.clientId} `;
3213
+ }
3214
+ throw new Error(errorMessage);
3215
+ }
3216
+ }
3151
3217
  };
3152
3218
  BuildCommand.paths = [["build"]];
3153
3219
  BuildCommand.usage = import_clipanion3.Command.Usage({
@@ -3216,6 +3282,21 @@ var fetchRemoteGraphqlSchema = async ({
3216
3282
  const data = await res.json();
3217
3283
  return data == null ? void 0 : data.data;
3218
3284
  };
3285
+ var fetchSchemaSha = async ({
3286
+ url,
3287
+ token
3288
+ }) => {
3289
+ const headers = new Headers();
3290
+ if (token) {
3291
+ headers.append("X-API-KEY", token);
3292
+ }
3293
+ const res = await fetch(url, {
3294
+ method: "GET",
3295
+ headers,
3296
+ cache: "no-cache"
3297
+ });
3298
+ return res.json();
3299
+ };
3219
3300
 
3220
3301
  // src/next/commands/audit-command/index.ts
3221
3302
  var import_clipanion4 = require("clipanion");
@@ -3469,25 +3550,25 @@ var import_clipanion6 = require("clipanion");
3469
3550
 
3470
3551
  // src/cmds/init/detectEnvironment.ts
3471
3552
  var import_fs_extra8 = __toESM(require("fs-extra"));
3472
- var import_path6 = __toESM(require("path"));
3553
+ var import_path7 = __toESM(require("path"));
3473
3554
  var checkGitignoreForItem = async ({
3474
3555
  baseDir,
3475
3556
  line
3476
3557
  }) => {
3477
- const gitignoreContent = import_fs_extra8.default.readFileSync(import_path6.default.join(baseDir, ".gitignore")).toString();
3558
+ const gitignoreContent = import_fs_extra8.default.readFileSync(import_path7.default.join(baseDir, ".gitignore")).toString();
3478
3559
  return gitignoreContent.split("\n").some((item) => item === line);
3479
3560
  };
3480
3561
  var makeGeneratedFile = async (name2, generatedFileType, parentPath, opts) => {
3481
3562
  const result = {
3482
- fullPathTS: import_path6.default.join(
3563
+ fullPathTS: import_path7.default.join(
3483
3564
  parentPath,
3484
3565
  `${name2}.${(opts == null ? void 0 : opts.typescriptSuffix) || (opts == null ? void 0 : opts.extensionOverride) || "ts"}`
3485
3566
  ),
3486
- fullPathJS: import_path6.default.join(
3567
+ fullPathJS: import_path7.default.join(
3487
3568
  parentPath,
3488
3569
  `${name2}.${(opts == null ? void 0 : opts.extensionOverride) || "js"}`
3489
3570
  ),
3490
- fullPathOverride: (opts == null ? void 0 : opts.extensionOverride) ? import_path6.default.join(parentPath, `${name2}.${opts == null ? void 0 : opts.extensionOverride}`) : "",
3571
+ fullPathOverride: (opts == null ? void 0 : opts.extensionOverride) ? import_path7.default.join(parentPath, `${name2}.${opts == null ? void 0 : opts.extensionOverride}`) : "",
3491
3572
  generatedFileType,
3492
3573
  name: name2,
3493
3574
  parentPath,
@@ -3517,16 +3598,16 @@ var detectEnvironment = async ({
3517
3598
  }) => {
3518
3599
  var _a;
3519
3600
  const hasForestryConfig = await import_fs_extra8.default.pathExists(
3520
- import_path6.default.join(pathToForestryConfig, ".forestry", "settings.yml")
3601
+ import_path7.default.join(pathToForestryConfig, ".forestry", "settings.yml")
3521
3602
  );
3522
- const sampleContentPath = import_path6.default.join(
3603
+ const sampleContentPath = import_path7.default.join(
3523
3604
  baseDir,
3524
3605
  "content",
3525
3606
  "posts",
3526
3607
  "hello-world.md"
3527
3608
  );
3528
- const usingSrc = import_fs_extra8.default.pathExistsSync(import_path6.default.join(baseDir, "src")) && (import_fs_extra8.default.pathExistsSync(import_path6.default.join(baseDir, "src", "app")) || import_fs_extra8.default.pathExistsSync(import_path6.default.join(baseDir, "src", "pages")));
3529
- const tinaFolder = import_path6.default.join(baseDir, "tina");
3609
+ const usingSrc = import_fs_extra8.default.pathExistsSync(import_path7.default.join(baseDir, "src")) && (import_fs_extra8.default.pathExistsSync(import_path7.default.join(baseDir, "src", "app")) || import_fs_extra8.default.pathExistsSync(import_path7.default.join(baseDir, "src", "pages")));
3610
+ const tinaFolder = import_path7.default.join(baseDir, "tina");
3530
3611
  const tinaConfigExists = Boolean(
3531
3612
  await import_fs_extra8.default.pathExists(tinaFolder) && (await import_fs_extra8.default.readdir(tinaFolder)).find((x) => x.includes("config"))
3532
3613
  );
@@ -3540,12 +3621,12 @@ var detectEnvironment = async ({
3540
3621
  "next-api-handler": await makeGeneratedFile(
3541
3622
  "[...routes]",
3542
3623
  "next-api-handler",
3543
- import_path6.default.join(...pagesDir, "api", "tina")
3624
+ import_path7.default.join(...pagesDir, "api", "tina")
3544
3625
  ),
3545
3626
  "reactive-example": await makeGeneratedFile(
3546
3627
  "[filename]",
3547
3628
  "reactive-example",
3548
- import_path6.default.join(...pagesDir, "demo", "blog"),
3629
+ import_path7.default.join(...pagesDir, "demo", "blog"),
3549
3630
  {
3550
3631
  typescriptSuffix: "tsx"
3551
3632
  }
@@ -3553,13 +3634,13 @@ var detectEnvironment = async ({
3553
3634
  "users-json": await makeGeneratedFile(
3554
3635
  "index",
3555
3636
  "users-json",
3556
- import_path6.default.join(baseDir, "content", "users"),
3637
+ import_path7.default.join(baseDir, "content", "users"),
3557
3638
  { extensionOverride: "json" }
3558
3639
  ),
3559
3640
  "sample-content": await makeGeneratedFile(
3560
3641
  "hello-world",
3561
3642
  "sample-content",
3562
- import_path6.default.join(baseDir, "content", "posts"),
3643
+ import_path7.default.join(baseDir, "content", "posts"),
3563
3644
  { extensionOverride: "md" }
3564
3645
  )
3565
3646
  };
@@ -3585,13 +3666,13 @@ var detectEnvironment = async ({
3585
3666
  );
3586
3667
  }
3587
3668
  }
3588
- const hasGitIgnore = await import_fs_extra8.default.pathExists(import_path6.default.join(".gitignore"));
3669
+ const hasGitIgnore = await import_fs_extra8.default.pathExists(import_path7.default.join(".gitignore"));
3589
3670
  const hasGitIgnoreNodeModules = hasGitIgnore && await checkGitignoreForItem({ baseDir, line: "node_modules" });
3590
3671
  const hasEnvTina = hasGitIgnore && await checkGitignoreForItem({ baseDir, line: ".env.tina" });
3591
3672
  const hasGitIgnoreEnv = hasGitIgnore && await checkGitignoreForItem({ baseDir, line: ".env" });
3592
3673
  let frontMatterFormat;
3593
3674
  if (hasForestryConfig) {
3594
- const hugoConfigPath = import_path6.default.join(rootPath, "config.toml");
3675
+ const hugoConfigPath = import_path7.default.join(rootPath, "config.toml");
3595
3676
  if (await import_fs_extra8.default.pathExists(hugoConfigPath)) {
3596
3677
  const hugoConfig = await import_fs_extra8.default.readFile(hugoConfigPath, "utf8");
3597
3678
  const metaDataFormat = (_a = hugoConfig.match(/metaDataFormat = "(.*)"/)) == null ? void 0 : _a[1];
@@ -4199,18 +4280,18 @@ var CLICommand = class {
4199
4280
  };
4200
4281
 
4201
4282
  // src/cmds/init/apply.ts
4202
- var import_path10 = __toESM(require("path"));
4283
+ var import_path11 = __toESM(require("path"));
4203
4284
 
4204
4285
  // src/cmds/forestry-migrate/index.ts
4205
4286
  var import_fs_extra10 = __toESM(require("fs-extra"));
4206
- var import_path8 = __toESM(require("path"));
4287
+ var import_path9 = __toESM(require("path"));
4207
4288
  var import_js_yaml2 = __toESM(require("js-yaml"));
4208
4289
  var import_minimatch = __toESM(require("minimatch"));
4209
4290
  var import_graphql16 = require("@tinacms/graphql");
4210
4291
 
4211
4292
  // src/cmds/forestry-migrate/util/index.ts
4212
4293
  var import_fs_extra9 = __toESM(require("fs-extra"));
4213
- var import_path7 = __toESM(require("path"));
4294
+ var import_path8 = __toESM(require("path"));
4214
4295
  var import_js_yaml = __toESM(require("js-yaml"));
4215
4296
  var import_zod = __toESM(require("zod"));
4216
4297
 
@@ -4621,7 +4702,7 @@ var transformForestryFieldsToTinaFields = ({
4621
4702
  return tinaFields;
4622
4703
  };
4623
4704
  var getFieldsFromTemplates = ({ tem, pathToForestryConfig, skipBlocks = false }) => {
4624
- const templatePath = import_path7.default.join(
4705
+ const templatePath = import_path8.default.join(
4625
4706
  pathToForestryConfig,
4626
4707
  ".forestry",
4627
4708
  "front_matter",
@@ -4696,8 +4777,8 @@ var generateAllTemplates = async ({
4696
4777
  pathToForestryConfig
4697
4778
  }) => {
4698
4779
  const allTemplates = (await import_fs_extra10.default.readdir(
4699
- import_path8.default.join(pathToForestryConfig, ".forestry", "front_matter", "templates")
4700
- )).map((tem) => import_path8.default.basename(tem, ".yml"));
4780
+ import_path9.default.join(pathToForestryConfig, ".forestry", "front_matter", "templates")
4781
+ )).map((tem) => import_path9.default.basename(tem, ".yml"));
4701
4782
  const templateMap = /* @__PURE__ */ new Map();
4702
4783
  const proms = allTemplates.map(async (tem) => {
4703
4784
  try {
@@ -4839,9 +4920,9 @@ var generateCollectionFromForestrySection = (args) => {
4839
4920
  return c;
4840
4921
  } else if (section.type === "document") {
4841
4922
  const filePath = section.path;
4842
- const extname = import_path8.default.extname(filePath);
4843
- const fileName = import_path8.default.basename(filePath, extname);
4844
- const dir = import_path8.default.dirname(filePath);
4923
+ const extname = import_path9.default.extname(filePath);
4924
+ const fileName = import_path9.default.basename(filePath, extname);
4925
+ const dir = import_path9.default.dirname(filePath);
4845
4926
  const ext = checkExt(extname);
4846
4927
  if (ext) {
4847
4928
  const fields = [];
@@ -4904,7 +4985,7 @@ var generateCollections = async ({
4904
4985
  usingTypescript
4905
4986
  });
4906
4987
  const forestryConfig = await import_fs_extra10.default.readFile(
4907
- import_path8.default.join(pathToForestryConfig, ".forestry", "settings.yml")
4988
+ import_path9.default.join(pathToForestryConfig, ".forestry", "settings.yml")
4908
4989
  );
4909
4990
  rewriteTemplateKeysInDocs({
4910
4991
  templateMap,
@@ -4935,11 +5016,11 @@ var rewriteTemplateKeysInDocs = (args) => {
4935
5016
  const { templateObj } = templateMap.get(templateKey);
4936
5017
  (_a = templateObj == null ? void 0 : templateObj.pages) == null ? void 0 : _a.forEach((page) => {
4937
5018
  try {
4938
- const filePath = import_path8.default.join(page);
5019
+ const filePath = import_path9.default.join(page);
4939
5020
  if (import_fs_extra10.default.lstatSync(filePath).isDirectory()) {
4940
5021
  return;
4941
5022
  }
4942
- const extname = import_path8.default.extname(filePath);
5023
+ const extname = import_path9.default.extname(filePath);
4943
5024
  const fileContent = import_fs_extra10.default.readFileSync(filePath).toString();
4944
5025
  const content = (0, import_graphql16.parseFile)(
4945
5026
  fileContent,
@@ -4971,7 +5052,7 @@ var import_fs_extra13 = __toESM(require("fs-extra"));
4971
5052
  // src/next/commands/codemod-command/index.ts
4972
5053
  var import_clipanion5 = require("clipanion");
4973
5054
  var import_fs_extra11 = __toESM(require("fs-extra"));
4974
- var import_path9 = __toESM(require("path"));
5055
+ var import_path10 = __toESM(require("path"));
4975
5056
  var CodemodCommand = class extends import_clipanion5.Command {
4976
5057
  constructor() {
4977
5058
  super(...arguments);
@@ -5015,7 +5096,7 @@ var moveTinaFolder = async (rootPath = process.cwd()) => {
5015
5096
  logger.error(e.message);
5016
5097
  process.exit(1);
5017
5098
  }
5018
- const tinaDestination = import_path9.default.join(configManager.rootPath, "tina");
5099
+ const tinaDestination = import_path10.default.join(configManager.rootPath, "tina");
5019
5100
  if (await import_fs_extra11.default.existsSync(tinaDestination)) {
5020
5101
  logger.info(
5021
5102
  `Folder already exists at ${tinaDestination}. Either delete this folder to complete the codemod, or ensure you have properly copied your config from the ".tina" folder.`
@@ -5030,7 +5111,7 @@ var moveTinaFolder = async (rootPath = process.cwd()) => {
5030
5111
  };
5031
5112
  var writeGitignore = async (rootPath) => {
5032
5113
  await import_fs_extra11.default.outputFileSync(
5033
- import_path9.default.join(rootPath, "tina", ".gitignore"),
5114
+ import_path10.default.join(rootPath, "tina", ".gitignore"),
5034
5115
  "__generated__"
5035
5116
  );
5036
5117
  };
@@ -5868,8 +5949,8 @@ async function apply({
5868
5949
  await addConfigFile({
5869
5950
  configArgs: {
5870
5951
  config: config2,
5871
- publicFolder: import_path10.default.join(
5872
- import_path10.default.relative(process.cwd(), pathToForestryConfig),
5952
+ publicFolder: import_path11.default.join(
5953
+ import_path11.default.relative(process.cwd(), pathToForestryConfig),
5873
5954
  config2.publicFolder
5874
5955
  ),
5875
5956
  collections,
@@ -5936,18 +6017,18 @@ var createPackageJSON = async () => {
5936
6017
  };
5937
6018
  var createGitignore = async ({ baseDir }) => {
5938
6019
  logger.info(logText("No .gitignore found, creating one"));
5939
- import_fs_extra13.default.outputFileSync(import_path10.default.join(baseDir, ".gitignore"), "node_modules");
6020
+ import_fs_extra13.default.outputFileSync(import_path11.default.join(baseDir, ".gitignore"), "node_modules");
5940
6021
  };
5941
6022
  var updateGitIgnore = async ({
5942
6023
  baseDir,
5943
6024
  items
5944
6025
  }) => {
5945
6026
  logger.info(logText(`Adding ${items.join(",")} to .gitignore`));
5946
- const gitignoreContent = import_fs_extra13.default.readFileSync(import_path10.default.join(baseDir, ".gitignore")).toString();
6027
+ const gitignoreContent = import_fs_extra13.default.readFileSync(import_path11.default.join(baseDir, ".gitignore")).toString();
5947
6028
  const newGitignoreContent = [...gitignoreContent.split("\n"), ...items].join(
5948
6029
  "\n"
5949
6030
  );
5950
- await import_fs_extra13.default.writeFile(import_path10.default.join(baseDir, ".gitignore"), newGitignoreContent);
6031
+ await import_fs_extra13.default.writeFile(import_path11.default.join(baseDir, ".gitignore"), newGitignoreContent);
5951
6032
  };
5952
6033
  var addDependencies = async (config2, env, params) => {
5953
6034
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
@@ -6017,22 +6098,22 @@ var writeGeneratedFile = async ({
6017
6098
  content,
6018
6099
  typescript
6019
6100
  }) => {
6020
- const { exists, path: path13, parentPath } = generatedFile.resolve(typescript);
6101
+ const { exists, path: path14, parentPath } = generatedFile.resolve(typescript);
6021
6102
  if (exists) {
6022
6103
  if (overwrite) {
6023
- logger.info(`Overwriting file at ${path13}... \u2705`);
6024
- import_fs_extra13.default.outputFileSync(path13, content);
6104
+ logger.info(`Overwriting file at ${path14}... \u2705`);
6105
+ import_fs_extra13.default.outputFileSync(path14, content);
6025
6106
  } else {
6026
- logger.info(`Not overwriting file at ${path13}.`);
6107
+ logger.info(`Not overwriting file at ${path14}.`);
6027
6108
  logger.info(
6028
- logText(`Please add the following to ${path13}:
6109
+ logText(`Please add the following to ${path14}:
6029
6110
  ${indentText(content)}}`)
6030
6111
  );
6031
6112
  }
6032
6113
  } else {
6033
- logger.info(`Adding file at ${path13}... \u2705`);
6114
+ logger.info(`Adding file at ${path14}... \u2705`);
6034
6115
  await import_fs_extra13.default.ensureDir(parentPath);
6035
- import_fs_extra13.default.outputFileSync(path13, content);
6116
+ import_fs_extra13.default.outputFileSync(path14, content);
6036
6117
  }
6037
6118
  };
6038
6119
  var addConfigFile = async ({
@@ -6115,7 +6196,7 @@ var addContentFile = async ({
6115
6196
  return () => ({
6116
6197
  exists: env.sampleContentExists,
6117
6198
  path: env.sampleContentPath,
6118
- parentPath: import_path10.default.dirname(env.sampleContentPath)
6199
+ parentPath: import_path11.default.dirname(env.sampleContentPath)
6119
6200
  });
6120
6201
  }
6121
6202
  },
@@ -6138,7 +6219,7 @@ ${titleText(" TinaCMS ")} backend initialized!`));
6138
6219
  return `${x.key}=${x.value || "***"}`;
6139
6220
  }).join("\n") + `
6140
6221
  TINA_PUBLIC_IS_LOCAL=true`;
6141
- const envFile = import_path10.default.join(process.cwd(), ".env");
6222
+ const envFile = import_path11.default.join(process.cwd(), ".env");
6142
6223
  if (!import_fs_extra13.default.existsSync(envFile)) {
6143
6224
  logger.info(`Adding .env file to your project... \u2705`);
6144
6225
  import_fs_extra13.default.writeFileSync(envFile, envFileText);
@@ -6202,7 +6283,7 @@ var addReactiveFile = {
6202
6283
  dataLayer
6203
6284
  }) => {
6204
6285
  var _a, _b;
6205
- const packageJsonPath = import_path10.default.join(baseDir, "package.json");
6286
+ const packageJsonPath = import_path11.default.join(baseDir, "package.json");
6206
6287
  await writeGeneratedFile({
6207
6288
  generatedFile,
6208
6289
  typescript: config2.typescript,
@@ -28,8 +28,13 @@ export declare class BuildCommand extends BaseCommand {
28
28
  previewName?: string;
29
29
  }): Promise<void>;
30
30
  checkGraphqlSchema(configManager: ConfigManager, database: Database, apiURL: string): Promise<void>;
31
+ checkTinaSchema(configManager: ConfigManager, database: Database, apiURL: string, previewName: string, verbose: boolean): Promise<void>;
31
32
  }
32
33
  export declare const fetchRemoteGraphqlSchema: ({ url, token, }: {
33
34
  url: string;
34
35
  token?: string;
35
36
  }) => Promise<any>;
37
+ export declare const fetchSchemaSha: ({ url, token, }: {
38
+ url: string;
39
+ token?: string;
40
+ }) => Promise<any>;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
 
3
3
  */
4
- import http from 'http';
4
+ import http from 'node:http';
5
5
  export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "1.6.11",
3
+ "version": "1.6.12",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -26,7 +26,6 @@
26
26
  "@types/cors": "2.8.5",
27
27
  "@types/crypto-js": "^4.2.2",
28
28
  "@types/express": "^4.17.21",
29
- "@types/express-graphql": "^0.9.0",
30
29
  "@types/figlet": "1.2.0",
31
30
  "@types/fs-extra": "^11.0.4",
32
31
  "@types/jest": "26.0.4",
@@ -38,18 +37,18 @@
38
37
  "@types/prompts": "^2.4.9",
39
38
  "@types/yup": "^0.32.0",
40
39
  "jest": "^29.7.0",
41
- "@tinacms/scripts": "1.3.0"
40
+ "@tinacms/scripts": "1.3.1"
42
41
  },
43
42
  "dependencies": {
44
43
  "@graphql-codegen/core": "^2.6.8",
45
44
  "@graphql-codegen/plugin-helpers": "latest",
46
- "@graphql-codegen/typescript": "^4.0.9",
47
- "@graphql-codegen/typescript-operations": "^4.2.3",
45
+ "@graphql-codegen/typescript": "^4.1.1",
46
+ "@graphql-codegen/typescript-operations": "^4.3.1",
48
47
  "@graphql-codegen/visitor-plugin-common": "^4.1.2",
49
48
  "@graphql-inspector/core": "^4.2.2",
50
49
  "@graphql-tools/graphql-file-loader": "^7.5.17",
51
50
  "@graphql-tools/load": "^7.8.14",
52
- "@rollup/pluginutils": "^5.1.2",
51
+ "@rollup/pluginutils": "^5.1.3",
53
52
  "@svgr/core": "8.1.0",
54
53
  "@tailwindcss/aspect-ratio": "^0.4.2",
55
54
  "@tailwindcss/container-queries": "^0.1.1",
@@ -79,18 +78,18 @@
79
78
  "progress": "^2.0.3",
80
79
  "prompts": "^2.4.2",
81
80
  "readable-stream": "^4.5.2",
82
- "tailwindcss": "^3.4.13",
81
+ "tailwindcss": "^3.4.15",
83
82
  "typanion": "3.13.0",
84
- "typescript": "^5.6.2",
83
+ "typescript": "^5.6.3",
85
84
  "vite": "^4.5.5",
86
85
  "yup": "^1.4.0",
87
86
  "zod": "^3.23.8",
88
- "@tinacms/app": "2.1.11",
89
- "@tinacms/graphql": "1.5.7",
90
- "@tinacms/metrics": "1.0.7",
91
- "@tinacms/schema-tools": "1.6.7",
92
- "@tinacms/search": "1.0.34",
93
- "tinacms": "2.4.0"
87
+ "@tinacms/graphql": "1.5.8",
88
+ "@tinacms/app": "2.1.12",
89
+ "@tinacms/schema-tools": "1.6.8",
90
+ "@tinacms/metrics": "1.0.8",
91
+ "tinacms": "2.5.0",
92
+ "@tinacms/search": "1.0.35"
94
93
  },
95
94
  "publishConfig": {
96
95
  "registry": "https://registry.npmjs.org"