@tinacms/cli 0.0.0-e024aec-20250526035050 → 0.0.0-e27c017-20250619233313

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.
@@ -1,4 +1,4 @@
1
- import type { Collection, TinaField } from '@tinacms/schema-tools';
1
+ import type { Collection, TinaField, ContentFrontmatterFormat } from '@tinacms/schema-tools';
2
2
  export declare const stringifyLabel: (label: string) => string;
3
3
  export declare const stringifyLabelWithField: (label: string) => string;
4
4
  export declare const generateAllTemplates: ({ pathToForestryConfig, }: {
@@ -8,7 +8,7 @@ export declare const generateAllTemplates: ({ pathToForestryConfig, }: {
8
8
  templateObj: any;
9
9
  }>>;
10
10
  export declare const generateCollections: ({ pathToForestryConfig, usingTypescript, frontMatterFormat, }: {
11
- frontMatterFormat?: "toml" | "yaml" | "json";
11
+ frontMatterFormat?: ContentFrontmatterFormat;
12
12
  pathToForestryConfig: string;
13
13
  usingTypescript: boolean;
14
14
  }) => Promise<{
@@ -1,4 +1,5 @@
1
1
  import { CLICommand } from '../index';
2
+ import { ContentFrontmatterFormat } from '@tinacms/schema-tools';
2
3
  export interface Framework {
3
4
  name: 'next' | 'hugo' | 'jekyll' | 'other';
4
5
  reactive: boolean;
@@ -20,11 +21,10 @@ export type GeneratedFile = {
20
21
  parentPath: string;
21
22
  };
22
23
  };
23
- export type FrontmatterFormat = 'yaml' | 'toml' | 'json';
24
24
  export type InitEnvironment = {
25
25
  hasTinaDeps: boolean;
26
26
  forestryConfigExists: boolean;
27
- frontMatterFormat: FrontmatterFormat;
27
+ frontMatterFormat: ContentFrontmatterFormat;
28
28
  gitIgnoreExists: boolean;
29
29
  gitIgnoreNodeModulesExists: boolean;
30
30
  gitIgnoreTinaEnvExists: boolean;
@@ -1,5 +1,6 @@
1
1
  import { Framework, InitEnvironment } from '../';
2
2
  import { Config, ImportStatement } from './types';
3
+ import { ContentFrontmatterFormat } from '@tinacms/schema-tools';
3
4
  export * from './askTinaCloudSetup';
4
5
  export * from './types';
5
6
  export * from './gitProvider';
@@ -14,7 +15,7 @@ export declare const askForestryMigrate: ({ framework, env, }: {
14
15
  env: InitEnvironment;
15
16
  }) => Promise<{
16
17
  forestryMigrate: boolean;
17
- frontMatterFormat?: "yaml" | "toml" | "json";
18
+ frontMatterFormat?: ContentFrontmatterFormat;
18
19
  }>;
19
20
  export declare const askTinaSetupPrompts: (params: {
20
21
  frameworkName: string;
@@ -1,3 +1,4 @@
1
+ import { ContentFrontmatterFormat } from '@tinacms/schema-tools';
1
2
  import { Framework, GeneratedFileType } from '../';
2
3
  export type Config = {
3
4
  typescript: boolean;
@@ -5,7 +6,7 @@ export type Config = {
5
6
  framework: Framework;
6
7
  packageManager: 'pnpm' | 'yarn' | 'npm';
7
8
  forestryMigrate: boolean;
8
- frontMatterFormat?: 'yaml' | 'toml' | 'json';
9
+ frontMatterFormat?: ContentFrontmatterFormat;
9
10
  hosting?: 'tina-cloud' | 'self-host';
10
11
  gitProvider?: PromptGitProvider;
11
12
  databaseAdapter?: PromptDatabaseAdapter;
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.7";
38
+ var version = "1.9.8";
39
39
 
40
40
  // src/next/commands/dev-command/index.ts
41
41
  var import_path5 = __toESM(require("path"));
@@ -4484,6 +4484,7 @@ var import_path9 = __toESM(require("path"));
4484
4484
  var import_js_yaml2 = __toESM(require("js-yaml"));
4485
4485
  var import_minimatch = __toESM(require("minimatch"));
4486
4486
  var import_graphql16 = require("@tinacms/graphql");
4487
+ var import_schema_tools3 = require("@tinacms/schema-tools");
4487
4488
 
4488
4489
  // src/cmds/forestry-migrate/util/index.ts
4489
4490
  var import_fs_extra9 = __toESM(require("fs-extra"));
@@ -4977,7 +4978,7 @@ var transformForestryMatchToTinaMatch = (match) => {
4977
4978
  };
4978
4979
  function checkExt(ext) {
4979
4980
  const extReal = ext.replace(".", "");
4980
- if (["mdx", "md", "json", "yaml", "yml", "toml"].includes(extReal)) {
4981
+ if (import_schema_tools3.CONTENT_FORMATS.includes(extReal)) {
4981
4982
  return extReal;
4982
4983
  } else {
4983
4984
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-e024aec-20250526035050",
3
+ "version": "0.0.0-e27c017-20250619233313",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "@types/prompts": "^2.4.9",
42
42
  "@types/yup": "^0.32.0",
43
43
  "jest": "^29.7.0",
44
- "@tinacms/scripts": "0.0.0-e024aec-20250526035050"
44
+ "@tinacms/scripts": "1.3.5"
45
45
  },
46
46
  "dependencies": {
47
47
  "@graphql-codegen/core": "^2.6.8",
@@ -89,12 +89,12 @@
89
89
  "vite": "^4.5.9",
90
90
  "yup": "^1.6.1",
91
91
  "zod": "^3.24.2",
92
- "@tinacms/app": "0.0.0-e024aec-20250526035050",
93
- "@tinacms/graphql": "0.0.0-e024aec-20250526035050",
94
- "@tinacms/schema-tools": "1.7.3",
95
- "@tinacms/search": "0.0.0-e024aec-20250526035050",
92
+ "@tinacms/app": "0.0.0-e27c017-20250619233313",
96
93
  "@tinacms/metrics": "1.0.9",
97
- "tinacms": "0.0.0-e024aec-20250526035050"
94
+ "@tinacms/graphql": "0.0.0-e27c017-20250619233313",
95
+ "@tinacms/schema-tools": "0.0.0-e27c017-20250619233313",
96
+ "@tinacms/search": "0.0.0-e27c017-20250619233313",
97
+ "tinacms": "0.0.0-e27c017-20250619233313"
98
98
  },
99
99
  "publishConfig": {
100
100
  "registry": "https://registry.npmjs.org"