@tinacms/cli 1.9.2 → 1.9.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.d.ts CHANGED
@@ -1,4 +1 @@
1
- import { Cli } from 'clipanion';
2
- export type { Schema, TinaSchema, Collection, TinaTemplate, } from '@tinacms/graphql';
3
- declare const cli: Cli<import("clipanion").BaseContext>;
4
- export default cli;
1
+ export * from "../src/index"
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(index_exports);
35
35
  var import_clipanion8 = require("clipanion");
36
36
 
37
37
  // package.json
38
- var version = "1.9.2";
38
+ var version = "1.9.4";
39
39
 
40
40
  // src/next/commands/dev-command/index.ts
41
41
  var import_async_lock = __toESM(require("async-lock"));
@@ -1182,7 +1182,7 @@ var MediaModel = class {
1182
1182
  this.rootPath,
1183
1183
  this.publicFolder,
1184
1184
  this.mediaRoot,
1185
- args.searchPath
1185
+ decodeURIComponent(args.searchPath)
1186
1186
  );
1187
1187
  const searchPath = parseMediaFolder(args.searchPath);
1188
1188
  if (!await import_fs_extra3.default.pathExists(folderPath)) {
@@ -1254,7 +1254,7 @@ var MediaModel = class {
1254
1254
  this.rootPath,
1255
1255
  this.publicFolder,
1256
1256
  this.mediaRoot,
1257
- args.searchPath
1257
+ decodeURIComponent(args.searchPath)
1258
1258
  );
1259
1259
  await import_fs_extra3.default.stat(file);
1260
1260
  await import_fs_extra3.default.remove(file);
@@ -1739,7 +1739,10 @@ var Codegen = class {
1739
1739
  this.noClientBuildCache = noClientBuildCache;
1740
1740
  }
1741
1741
  async writeConfigFile(fileName, data) {
1742
- const filePath = import_path4.default.join(this.configManager.generatedFolderPath, fileName);
1742
+ const filePath = import_path4.default.join(
1743
+ this.configManager.generatedFolderPath,
1744
+ fileName
1745
+ );
1743
1746
  await import_fs_extra4.default.ensureFile(filePath);
1744
1747
  await import_fs_extra4.default.outputFile(filePath, data);
1745
1748
  if (this.configManager.hasSeparateContentRoot()) {
@@ -2999,7 +3002,9 @@ ${dangerText(e.message)}
2999
3002
  `ERROR: Branch not configured in tina search configuration.`
3000
3003
  )}`
3001
3004
  );
3002
- throw new Error("Branch not configured in tina search configuration.");
3005
+ throw new Error(
3006
+ "Branch not configured in tina search configuration."
3007
+ );
3003
3008
  }
3004
3009
  if (!((_d = configManager.config) == null ? void 0 : _d.clientId)) {
3005
3010
  logger.error(`${dangerText(`ERROR: clientId not configured.`)}`);
@@ -3142,7 +3147,10 @@ ${dangerText(e.message)}
3142
3147
  });
3143
3148
  throw e;
3144
3149
  }
3145
- const branchBar = new import_progress2.default("Checking branch is on Tina Cloud. :prog", 1);
3150
+ const branchBar = new import_progress2.default(
3151
+ "Checking branch is on Tina Cloud. :prog",
3152
+ 1
3153
+ );
3146
3154
  if (branchKnown) {
3147
3155
  branchBar.tick({
3148
3156
  prog: "\u2705"
@@ -3266,7 +3274,7 @@ Additional info: Branch: ${config2.branch}, Client ID: ${config2.clientId} `;
3266
3274
  const localSchemaDocument = await database.getGraphQLSchemaFromBridge();
3267
3275
  const localGraphqlSchema = (0, import_graphql12.buildASTSchema)(localSchemaDocument);
3268
3276
  try {
3269
- const diffResult = await (0, import_core3.diff)(localGraphqlSchema, remoteGqlSchema);
3277
+ const diffResult = await (0, import_core3.diff)(remoteGqlSchema, localGraphqlSchema);
3270
3278
  if (diffResult.length === 0) {
3271
3279
  bar2.tick({
3272
3280
  prog: "\u2705"
@@ -3323,7 +3331,9 @@ Additional info:
3323
3331
  const { clientId, branch, isLocalClient, host } = (0, import_schema_tools2.parseURL)(apiURL);
3324
3332
  if (isLocalClient || !host || !clientId || !branch) {
3325
3333
  if (verbose) {
3326
- logger.info(logText("Not using Tina Cloud, skipping Tina Schema check"));
3334
+ logger.info(
3335
+ logText("Not using Tina Cloud, skipping Tina Schema check")
3336
+ );
3327
3337
  }
3328
3338
  return;
3329
3339
  }
@@ -4845,7 +4855,6 @@ var transformForestryFieldsToTinaFields = ({
4845
4855
  name: stringifyTemplateName(tem, tem)
4846
4856
  };
4847
4857
  if (t.name != tem) {
4848
- ;
4849
4858
  t.nameOverride = tem;
4850
4859
  }
4851
4860
  templates2.push(t);
@@ -5990,10 +5999,13 @@ var addSelfHostedTinaAuthToConfig = async (config2, configFile) => {
5990
5999
  const { configImports, configAuthProviderClass, extraTinaCollections } = config2.authProvider;
5991
6000
  const importMap = {
5992
6001
  // iterate over configImports and add them to the import map
5993
- ...configImports.reduce((acc, { from, imported }) => {
5994
- acc[from] = imported;
5995
- return acc;
5996
- }, {})
6002
+ ...configImports.reduce(
6003
+ (acc, { from, imported }) => {
6004
+ acc[from] = imported;
6005
+ return acc;
6006
+ },
6007
+ {}
6008
+ )
5997
6009
  };
5998
6010
  const transformedSourceFileResult = import_typescript3.default.transform(
5999
6011
  sourceFile,
@@ -6448,6 +6460,13 @@ ${titleText(" TinaCMS ")} has been initialized!`));
6448
6460
  logger.info(
6449
6461
  "To get started run: " + cmdText(frameworkDevCmds[framework.name]({ packageManager }))
6450
6462
  );
6463
+ if (framework.name === "hugo") {
6464
+ logger.info(
6465
+ focusText("Hugo is required. "),
6466
+ "Don't have Hugo installed? Follow this guide to set it up: ",
6467
+ linkText("https://gohugo.io/installation/")
6468
+ );
6469
+ }
6451
6470
  logger.info(
6452
6471
  "To get your site production ready, run: " + cmdText(`tinacms init backend`)
6453
6472
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -85,12 +85,12 @@
85
85
  "vite": "^4.5.9",
86
86
  "yup": "^1.6.1",
87
87
  "zod": "^3.24.2",
88
- "@tinacms/app": "2.2.2",
89
- "@tinacms/graphql": "1.5.14",
88
+ "@tinacms/graphql": "1.5.15",
89
+ "@tinacms/app": "2.2.4",
90
90
  "@tinacms/metrics": "1.0.9",
91
91
  "@tinacms/schema-tools": "1.7.2",
92
- "@tinacms/search": "1.0.41",
93
- "tinacms": "2.7.2"
92
+ "@tinacms/search": "1.0.42",
93
+ "tinacms": "2.7.4"
94
94
  },
95
95
  "publishConfig": {
96
96
  "registry": "https://registry.npmjs.org"