@tinacms/cli 0.0.0-a690e47-20241003005744 → 0.0.0-aaceea1-20241023062538

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,12 +31,12 @@ module.exports = __toCommonJS(src_exports);
31
31
  var import_clipanion8 = require("clipanion");
32
32
 
33
33
  // package.json
34
- var version = "1.6.8";
34
+ var version = "1.6.10";
35
35
 
36
36
  // src/next/commands/dev-command/index.ts
37
37
  var import_clipanion2 = require("clipanion");
38
38
  var import_fs_extra6 = __toESM(require("fs-extra"));
39
- var import_path6 = __toESM(require("path"));
39
+ var import_path5 = __toESM(require("path"));
40
40
  var import_chokidar = __toESM(require("chokidar"));
41
41
  var import_graphql10 = require("@tinacms/graphql");
42
42
 
@@ -612,17 +612,19 @@ var CONFIRMATION_TEXT = import_chalk3.default.dim("enter to confirm");
612
612
  var import_vite3 = require("vite");
613
613
 
614
614
  // src/next/vite/index.ts
615
- var import_path2 = __toESM(require("path"));
615
+ var import_node_path2 = __toESM(require("path"));
616
+ var import_plugin_react = __toESM(require("@vitejs/plugin-react"));
616
617
  var import_fs_extra2 = __toESM(require("fs-extra"));
618
+ var import_normalize_path2 = __toESM(require("normalize-path"));
617
619
  var import_vite = require("vite");
618
- var import_plugin_react = __toESM(require("@vitejs/plugin-react"));
619
620
 
620
621
  // src/next/vite/tailwind.ts
622
+ var import_node_path = __toESM(require("path"));
623
+ var import_aspect_ratio = __toESM(require("@tailwindcss/aspect-ratio"));
624
+ var import_container_queries = __toESM(require("@tailwindcss/container-queries"));
625
+ var import_typography = __toESM(require("@tailwindcss/typography"));
621
626
  var import_tailwindcss = __toESM(require("tailwindcss"));
622
627
  var import_defaultTheme = __toESM(require("tailwindcss/defaultTheme.js"));
623
- var import_typography = __toESM(require("@tailwindcss/typography"));
624
- var import_aspect_ratio = __toESM(require("@tailwindcss/aspect-ratio"));
625
- var import_node_path = __toESM(require("path"));
626
628
  var tinaTailwind = (spaPath, prebuildFilePath) => {
627
629
  return {
628
630
  name: "vite-plugin-tina",
@@ -866,7 +868,11 @@ var tinaTailwind = (spaPath, prebuildFilePath) => {
866
868
  }
867
869
  },
868
870
  content,
869
- plugins: [(0, import_typography.default)({ className: "tina-prose" }), import_aspect_ratio.default]
871
+ plugins: [
872
+ (0, import_typography.default)({ className: "tina-prose" }),
873
+ import_aspect_ratio.default,
874
+ import_container_queries.default
875
+ ]
870
876
  });
871
877
  plugins.push(tw);
872
878
  return {
@@ -881,13 +887,12 @@ var tinaTailwind = (spaPath, prebuildFilePath) => {
881
887
  };
882
888
 
883
889
  // src/next/vite/index.ts
884
- var import_normalize_path2 = __toESM(require("normalize-path"));
885
890
  async function listFilesRecursively({
886
891
  directoryPath,
887
892
  config: config2,
888
893
  roothPath
889
894
  }) {
890
- const fullDirectoryPath = import_path2.default.join(
895
+ const fullDirectoryPath = import_node_path2.default.join(
891
896
  roothPath,
892
897
  config2.publicFolder,
893
898
  directoryPath
@@ -899,23 +904,23 @@ async function listFilesRecursively({
899
904
  const items = await import_fs_extra2.default.readdir(fullDirectoryPath);
900
905
  const staticMediaItems = [];
901
906
  for (const item of items) {
902
- const itemPath = import_path2.default.join(fullDirectoryPath, item);
907
+ const itemPath = import_node_path2.default.join(fullDirectoryPath, item);
903
908
  const stats = await import_fs_extra2.default.promises.lstat(itemPath);
904
909
  const staticMediaItem = {
905
910
  id: item,
906
911
  filename: item,
907
912
  type: stats.isDirectory() ? "dir" : "file",
908
913
  directory: `${directoryPath.replace(config2.mediaRoot, "")}`,
909
- src: `/${import_path2.default.join(directoryPath, item)}`,
914
+ src: `/${import_node_path2.default.join(directoryPath, item)}`,
910
915
  thumbnails: {
911
- "75x75": `/${import_path2.default.join(directoryPath, item)}`,
912
- "400x400": `/${import_path2.default.join(directoryPath, item)}`,
913
- "1000x1000": `/${import_path2.default.join(directoryPath, item)}`
916
+ "75x75": `/${import_node_path2.default.join(directoryPath, item)}`,
917
+ "400x400": `/${import_node_path2.default.join(directoryPath, item)}`,
918
+ "1000x1000": `/${import_node_path2.default.join(directoryPath, item)}`
914
919
  }
915
920
  };
916
921
  if (stats.isDirectory()) {
917
922
  staticMediaItem.children = await listFilesRecursively({
918
- directoryPath: import_path2.default.join(directoryPath, item),
923
+ directoryPath: import_node_path2.default.join(directoryPath, item),
919
924
  config: config2,
920
925
  roothPath
921
926
  });
@@ -958,7 +963,7 @@ var createConfig = async ({
958
963
  }
959
964
  }
960
965
  });
961
- const staticMediaPath = import_path2.default.join(
966
+ const staticMediaPath = import_node_path2.default.join(
962
967
  configManager.generatedFolderPath,
963
968
  "static-media.json"
964
969
  );
@@ -972,17 +977,22 @@ var createConfig = async ({
972
977
  } else {
973
978
  await import_fs_extra2.default.outputFile(staticMediaPath, `[]`);
974
979
  }
980
+ const isBrowser = typeof window !== "undefined";
981
+ console.log("configManager IS BROWSER? - ", isBrowser);
975
982
  const alias = {
976
983
  TINA_IMPORT: configManager.prebuildFilePath,
977
984
  SCHEMA_IMPORT: configManager.generatedGraphQLJSONPath,
978
985
  STATIC_MEDIA_IMPORT: staticMediaPath,
979
- crypto: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
980
- fs: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
981
- os: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
982
- path: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts")
986
+ ...isBrowser && {
987
+ crypto: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
988
+ fs: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
989
+ os: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
990
+ path: import_node_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts")
991
+ }
983
992
  };
993
+ console.log("alias - ", JSON.stringify(alias));
984
994
  if (configManager.shouldSkipSDK()) {
985
- alias["CLIENT_IMPORT"] = import_path2.default.join(
995
+ alias["CLIENT_IMPORT"] = import_node_path2.default.join(
986
996
  configManager.spaRootPath,
987
997
  "src",
988
998
  "dummy-client.ts"
@@ -1014,7 +1024,8 @@ var createConfig = async ({
1014
1024
  logLevel: "error",
1015
1025
  optimizeDeps: {
1016
1026
  force: true,
1017
- include: ["react/jsx-runtime", "react/jsx-dev-runtime"]
1027
+ include: ["react/jsx-runtime", "react/jsx-dev-runtime"],
1028
+ exclude: ["fs", "os", "path", "crypto"]
1018
1029
  },
1019
1030
  server: {
1020
1031
  host: (_h = (_g = (_f = configManager.config) == null ? void 0 : _f.build) == null ? void 0 : _g.host) != null ? _h : false,
@@ -1054,17 +1065,17 @@ var import_pluginutils = require("@rollup/pluginutils");
1054
1065
  var import_fs = __toESM(require("fs"));
1055
1066
  var import_vite2 = require("vite");
1056
1067
  var import_esbuild = require("esbuild");
1057
- var import_path4 = __toESM(require("path"));
1068
+ var import_path3 = __toESM(require("path"));
1058
1069
  var import_body_parser = __toESM(require("body-parser"));
1059
1070
  var import_cors = __toESM(require("cors"));
1060
1071
  var import_graphql = require("@tinacms/graphql");
1061
1072
 
1062
1073
  // src/next/commands/dev-command/server/media.ts
1063
1074
  var import_fs_extra3 = __toESM(require("fs-extra"));
1064
- var import_path3 = __toESM(require("path"));
1075
+ var import_path2 = __toESM(require("path"));
1065
1076
  var import_busboy = __toESM(require("busboy"));
1066
1077
  var createMediaRouter = (config2) => {
1067
- const mediaFolder = import_path3.default.join(
1078
+ const mediaFolder = import_path2.default.join(
1068
1079
  config2.rootPath,
1069
1080
  config2.publicFolder,
1070
1081
  config2.mediaRoot
@@ -1092,8 +1103,8 @@ var createMediaRouter = (config2) => {
1092
1103
  bb.on("file", async (_name, file, _info) => {
1093
1104
  var _a;
1094
1105
  const fullPath = decodeURI((_a = req.url) == null ? void 0 : _a.slice("/media/upload/".length));
1095
- const saveTo = import_path3.default.join(mediaFolder, ...fullPath.split("/"));
1096
- await import_fs_extra3.default.ensureDir(import_path3.default.dirname(saveTo));
1106
+ const saveTo = import_path2.default.join(mediaFolder, ...fullPath.split("/"));
1107
+ await import_fs_extra3.default.ensureDir(import_path2.default.dirname(saveTo));
1097
1108
  file.pipe(import_fs_extra3.default.createWriteStream(saveTo));
1098
1109
  });
1099
1110
  bb.on("error", (error) => {
@@ -1128,7 +1139,7 @@ var MediaModel = class {
1128
1139
  }
1129
1140
  async listMedia(args) {
1130
1141
  try {
1131
- const folderPath = (0, import_path3.join)(
1142
+ const folderPath = (0, import_path2.join)(
1132
1143
  this.rootPath,
1133
1144
  this.publicFolder,
1134
1145
  this.mediaRoot,
@@ -1143,7 +1154,7 @@ var MediaModel = class {
1143
1154
  }
1144
1155
  const filesStr = await import_fs_extra3.default.readdir(folderPath);
1145
1156
  const filesProm = filesStr.map(async (file) => {
1146
- const filePath = (0, import_path3.join)(folderPath, file);
1157
+ const filePath = (0, import_path2.join)(folderPath, file);
1147
1158
  const stat = await import_fs_extra3.default.stat(filePath);
1148
1159
  let src = `/${file}`;
1149
1160
  const isFile = stat.isFile();
@@ -1200,7 +1211,7 @@ var MediaModel = class {
1200
1211
  }
1201
1212
  async deleteMedia(args) {
1202
1213
  try {
1203
- const file = (0, import_path3.join)(
1214
+ const file = (0, import_path2.join)(
1204
1215
  this.rootPath,
1205
1216
  this.publicFolder,
1206
1217
  this.mediaRoot,
@@ -1265,7 +1276,7 @@ var transformTsxPlugin = ({
1265
1276
  const plug = {
1266
1277
  name: "transform-tsx",
1267
1278
  async transform(code, id) {
1268
- const extName = import_path4.default.extname(id);
1279
+ const extName = import_path3.default.extname(id);
1269
1280
  if (extName.startsWith(".tsx") || extName.startsWith(".ts")) {
1270
1281
  const result = await (0, import_esbuild.transform)(code, { loader: "tsx" });
1271
1282
  return {
@@ -1417,7 +1428,7 @@ var createDevServer = async (configManager, database, searchIndex, apiURL, noWat
1417
1428
 
1418
1429
  // src/next/codegen/index.ts
1419
1430
  var import_fs_extra4 = __toESM(require("fs-extra"));
1420
- var import_path5 = __toESM(require("path"));
1431
+ var import_path4 = __toESM(require("path"));
1421
1432
  var import_graphql6 = require("graphql");
1422
1433
 
1423
1434
  // src/next/codegen/codegen/index.ts
@@ -1663,11 +1674,11 @@ var Codegen = class {
1663
1674
  this.noClientBuildCache = noClientBuildCache;
1664
1675
  }
1665
1676
  async writeConfigFile(fileName, data) {
1666
- const filePath = import_path5.default.join(this.configManager.generatedFolderPath, fileName);
1677
+ const filePath = import_path4.default.join(this.configManager.generatedFolderPath, fileName);
1667
1678
  await import_fs_extra4.default.ensureFile(filePath);
1668
1679
  await import_fs_extra4.default.outputFile(filePath, data);
1669
1680
  if (this.configManager.hasSeparateContentRoot()) {
1670
- const filePath2 = import_path5.default.join(
1681
+ const filePath2 = import_path4.default.join(
1671
1682
  this.configManager.generatedFolderPathContentRepo,
1672
1683
  fileName
1673
1684
  );
@@ -2319,14 +2330,14 @@ var DevCommand = class extends BaseCommand {
2319
2330
  graphql: graphqlSchemaObject
2320
2331
  });
2321
2332
  import_fs_extra6.default.writeFileSync(
2322
- import_path6.default.join(configManager.tinaFolderPath, tinaLockFilename),
2333
+ import_path5.default.join(configManager.tinaFolderPath, tinaLockFilename),
2323
2334
  tinaLockContent
2324
2335
  );
2325
2336
  if (configManager.hasSeparateContentRoot()) {
2326
2337
  const rootPath = await configManager.getTinaFolderPath(
2327
2338
  configManager.contentRootPath
2328
2339
  );
2329
- const filePath = import_path6.default.join(rootPath, tinaLockFilename);
2340
+ const filePath = import_path5.default.join(rootPath, tinaLockFilename);
2330
2341
  await import_fs_extra6.default.ensureFile(filePath);
2331
2342
  await import_fs_extra6.default.outputFile(filePath, tinaLockContent);
2332
2343
  }
@@ -2473,7 +2484,7 @@ ${dangerText(e.message)}
2473
2484
  watchContentFiles(configManager, database, searchIndexer) {
2474
2485
  const collectionContentFiles = [];
2475
2486
  configManager.config.schema.collections.forEach((collection) => {
2476
- const collectionGlob = `${import_path6.default.join(
2487
+ const collectionGlob = `${import_path5.default.join(
2477
2488
  configManager.contentRootPath,
2478
2489
  collection.path
2479
2490
  )}/**/*.${collection.format || "md"}`;
@@ -3464,25 +3475,25 @@ var import_clipanion6 = require("clipanion");
3464
3475
 
3465
3476
  // src/cmds/init/detectEnvironment.ts
3466
3477
  var import_fs_extra8 = __toESM(require("fs-extra"));
3467
- var import_path7 = __toESM(require("path"));
3478
+ var import_path6 = __toESM(require("path"));
3468
3479
  var checkGitignoreForItem = async ({
3469
3480
  baseDir,
3470
3481
  line
3471
3482
  }) => {
3472
- const gitignoreContent = import_fs_extra8.default.readFileSync(import_path7.default.join(baseDir, ".gitignore")).toString();
3483
+ const gitignoreContent = import_fs_extra8.default.readFileSync(import_path6.default.join(baseDir, ".gitignore")).toString();
3473
3484
  return gitignoreContent.split("\n").some((item) => item === line);
3474
3485
  };
3475
3486
  var makeGeneratedFile = async (name2, generatedFileType, parentPath, opts) => {
3476
3487
  const result = {
3477
- fullPathTS: import_path7.default.join(
3488
+ fullPathTS: import_path6.default.join(
3478
3489
  parentPath,
3479
3490
  `${name2}.${(opts == null ? void 0 : opts.typescriptSuffix) || (opts == null ? void 0 : opts.extensionOverride) || "ts"}`
3480
3491
  ),
3481
- fullPathJS: import_path7.default.join(
3492
+ fullPathJS: import_path6.default.join(
3482
3493
  parentPath,
3483
3494
  `${name2}.${(opts == null ? void 0 : opts.extensionOverride) || "js"}`
3484
3495
  ),
3485
- fullPathOverride: (opts == null ? void 0 : opts.extensionOverride) ? import_path7.default.join(parentPath, `${name2}.${opts == null ? void 0 : opts.extensionOverride}`) : "",
3496
+ fullPathOverride: (opts == null ? void 0 : opts.extensionOverride) ? import_path6.default.join(parentPath, `${name2}.${opts == null ? void 0 : opts.extensionOverride}`) : "",
3486
3497
  generatedFileType,
3487
3498
  name: name2,
3488
3499
  parentPath,
@@ -3512,16 +3523,16 @@ var detectEnvironment = async ({
3512
3523
  }) => {
3513
3524
  var _a;
3514
3525
  const hasForestryConfig = await import_fs_extra8.default.pathExists(
3515
- import_path7.default.join(pathToForestryConfig, ".forestry", "settings.yml")
3526
+ import_path6.default.join(pathToForestryConfig, ".forestry", "settings.yml")
3516
3527
  );
3517
- const sampleContentPath = import_path7.default.join(
3528
+ const sampleContentPath = import_path6.default.join(
3518
3529
  baseDir,
3519
3530
  "content",
3520
3531
  "posts",
3521
3532
  "hello-world.md"
3522
3533
  );
3523
- 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")));
3524
- const tinaFolder = import_path7.default.join(baseDir, "tina");
3534
+ 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")));
3535
+ const tinaFolder = import_path6.default.join(baseDir, "tina");
3525
3536
  const tinaConfigExists = Boolean(
3526
3537
  await import_fs_extra8.default.pathExists(tinaFolder) && (await import_fs_extra8.default.readdir(tinaFolder)).find((x) => x.includes("config"))
3527
3538
  );
@@ -3535,12 +3546,12 @@ var detectEnvironment = async ({
3535
3546
  "next-api-handler": await makeGeneratedFile(
3536
3547
  "[...routes]",
3537
3548
  "next-api-handler",
3538
- import_path7.default.join(...pagesDir, "api", "tina")
3549
+ import_path6.default.join(...pagesDir, "api", "tina")
3539
3550
  ),
3540
3551
  "reactive-example": await makeGeneratedFile(
3541
3552
  "[filename]",
3542
3553
  "reactive-example",
3543
- import_path7.default.join(...pagesDir, "demo", "blog"),
3554
+ import_path6.default.join(...pagesDir, "demo", "blog"),
3544
3555
  {
3545
3556
  typescriptSuffix: "tsx"
3546
3557
  }
@@ -3548,13 +3559,13 @@ var detectEnvironment = async ({
3548
3559
  "users-json": await makeGeneratedFile(
3549
3560
  "index",
3550
3561
  "users-json",
3551
- import_path7.default.join(baseDir, "content", "users"),
3562
+ import_path6.default.join(baseDir, "content", "users"),
3552
3563
  { extensionOverride: "json" }
3553
3564
  ),
3554
3565
  "sample-content": await makeGeneratedFile(
3555
3566
  "hello-world",
3556
3567
  "sample-content",
3557
- import_path7.default.join(baseDir, "content", "posts"),
3568
+ import_path6.default.join(baseDir, "content", "posts"),
3558
3569
  { extensionOverride: "md" }
3559
3570
  )
3560
3571
  };
@@ -3580,13 +3591,13 @@ var detectEnvironment = async ({
3580
3591
  );
3581
3592
  }
3582
3593
  }
3583
- const hasGitIgnore = await import_fs_extra8.default.pathExists(import_path7.default.join(".gitignore"));
3594
+ const hasGitIgnore = await import_fs_extra8.default.pathExists(import_path6.default.join(".gitignore"));
3584
3595
  const hasGitIgnoreNodeModules = hasGitIgnore && await checkGitignoreForItem({ baseDir, line: "node_modules" });
3585
3596
  const hasEnvTina = hasGitIgnore && await checkGitignoreForItem({ baseDir, line: ".env.tina" });
3586
3597
  const hasGitIgnoreEnv = hasGitIgnore && await checkGitignoreForItem({ baseDir, line: ".env" });
3587
3598
  let frontMatterFormat;
3588
3599
  if (hasForestryConfig) {
3589
- const hugoConfigPath = import_path7.default.join(rootPath, "config.toml");
3600
+ const hugoConfigPath = import_path6.default.join(rootPath, "config.toml");
3590
3601
  if (await import_fs_extra8.default.pathExists(hugoConfigPath)) {
3591
3602
  const hugoConfig = await import_fs_extra8.default.readFile(hugoConfigPath, "utf8");
3592
3603
  const metaDataFormat = (_a = hugoConfig.match(/metaDataFormat = "(.*)"/)) == null ? void 0 : _a[1];
@@ -4194,18 +4205,18 @@ var CLICommand = class {
4194
4205
  };
4195
4206
 
4196
4207
  // src/cmds/init/apply.ts
4197
- var import_path11 = __toESM(require("path"));
4208
+ var import_path10 = __toESM(require("path"));
4198
4209
 
4199
4210
  // src/cmds/forestry-migrate/index.ts
4200
4211
  var import_fs_extra10 = __toESM(require("fs-extra"));
4201
- var import_path9 = __toESM(require("path"));
4212
+ var import_path8 = __toESM(require("path"));
4202
4213
  var import_js_yaml2 = __toESM(require("js-yaml"));
4203
4214
  var import_minimatch = __toESM(require("minimatch"));
4204
4215
  var import_graphql16 = require("@tinacms/graphql");
4205
4216
 
4206
4217
  // src/cmds/forestry-migrate/util/index.ts
4207
4218
  var import_fs_extra9 = __toESM(require("fs-extra"));
4208
- var import_path8 = __toESM(require("path"));
4219
+ var import_path7 = __toESM(require("path"));
4209
4220
  var import_js_yaml = __toESM(require("js-yaml"));
4210
4221
  var import_zod = __toESM(require("zod"));
4211
4222
 
@@ -4616,7 +4627,7 @@ var transformForestryFieldsToTinaFields = ({
4616
4627
  return tinaFields;
4617
4628
  };
4618
4629
  var getFieldsFromTemplates = ({ tem, pathToForestryConfig, skipBlocks = false }) => {
4619
- const templatePath = import_path8.default.join(
4630
+ const templatePath = import_path7.default.join(
4620
4631
  pathToForestryConfig,
4621
4632
  ".forestry",
4622
4633
  "front_matter",
@@ -4691,8 +4702,8 @@ var generateAllTemplates = async ({
4691
4702
  pathToForestryConfig
4692
4703
  }) => {
4693
4704
  const allTemplates = (await import_fs_extra10.default.readdir(
4694
- import_path9.default.join(pathToForestryConfig, ".forestry", "front_matter", "templates")
4695
- )).map((tem) => import_path9.default.basename(tem, ".yml"));
4705
+ import_path8.default.join(pathToForestryConfig, ".forestry", "front_matter", "templates")
4706
+ )).map((tem) => import_path8.default.basename(tem, ".yml"));
4696
4707
  const templateMap = /* @__PURE__ */ new Map();
4697
4708
  const proms = allTemplates.map(async (tem) => {
4698
4709
  try {
@@ -4834,9 +4845,9 @@ var generateCollectionFromForestrySection = (args) => {
4834
4845
  return c;
4835
4846
  } else if (section.type === "document") {
4836
4847
  const filePath = section.path;
4837
- const extname = import_path9.default.extname(filePath);
4838
- const fileName = import_path9.default.basename(filePath, extname);
4839
- const dir = import_path9.default.dirname(filePath);
4848
+ const extname = import_path8.default.extname(filePath);
4849
+ const fileName = import_path8.default.basename(filePath, extname);
4850
+ const dir = import_path8.default.dirname(filePath);
4840
4851
  const ext = checkExt(extname);
4841
4852
  if (ext) {
4842
4853
  const fields = [];
@@ -4899,7 +4910,7 @@ var generateCollections = async ({
4899
4910
  usingTypescript
4900
4911
  });
4901
4912
  const forestryConfig = await import_fs_extra10.default.readFile(
4902
- import_path9.default.join(pathToForestryConfig, ".forestry", "settings.yml")
4913
+ import_path8.default.join(pathToForestryConfig, ".forestry", "settings.yml")
4903
4914
  );
4904
4915
  rewriteTemplateKeysInDocs({
4905
4916
  templateMap,
@@ -4930,11 +4941,11 @@ var rewriteTemplateKeysInDocs = (args) => {
4930
4941
  const { templateObj } = templateMap.get(templateKey);
4931
4942
  (_a = templateObj == null ? void 0 : templateObj.pages) == null ? void 0 : _a.forEach((page) => {
4932
4943
  try {
4933
- const filePath = import_path9.default.join(page);
4944
+ const filePath = import_path8.default.join(page);
4934
4945
  if (import_fs_extra10.default.lstatSync(filePath).isDirectory()) {
4935
4946
  return;
4936
4947
  }
4937
- const extname = import_path9.default.extname(filePath);
4948
+ const extname = import_path8.default.extname(filePath);
4938
4949
  const fileContent = import_fs_extra10.default.readFileSync(filePath).toString();
4939
4950
  const content = (0, import_graphql16.parseFile)(
4940
4951
  fileContent,
@@ -4966,7 +4977,7 @@ var import_fs_extra13 = __toESM(require("fs-extra"));
4966
4977
  // src/next/commands/codemod-command/index.ts
4967
4978
  var import_clipanion5 = require("clipanion");
4968
4979
  var import_fs_extra11 = __toESM(require("fs-extra"));
4969
- var import_path10 = __toESM(require("path"));
4980
+ var import_path9 = __toESM(require("path"));
4970
4981
  var CodemodCommand = class extends import_clipanion5.Command {
4971
4982
  constructor() {
4972
4983
  super(...arguments);
@@ -5010,7 +5021,7 @@ var moveTinaFolder = async (rootPath = process.cwd()) => {
5010
5021
  logger.error(e.message);
5011
5022
  process.exit(1);
5012
5023
  }
5013
- const tinaDestination = import_path10.default.join(configManager.rootPath, "tina");
5024
+ const tinaDestination = import_path9.default.join(configManager.rootPath, "tina");
5014
5025
  if (await import_fs_extra11.default.existsSync(tinaDestination)) {
5015
5026
  logger.info(
5016
5027
  `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.`
@@ -5025,7 +5036,7 @@ var moveTinaFolder = async (rootPath = process.cwd()) => {
5025
5036
  };
5026
5037
  var writeGitignore = async (rootPath) => {
5027
5038
  await import_fs_extra11.default.outputFileSync(
5028
- import_path10.default.join(rootPath, "tina", ".gitignore"),
5039
+ import_path9.default.join(rootPath, "tina", ".gitignore"),
5029
5040
  "__generated__"
5030
5041
  );
5031
5042
  };
@@ -5863,8 +5874,8 @@ async function apply({
5863
5874
  await addConfigFile({
5864
5875
  configArgs: {
5865
5876
  config: config2,
5866
- publicFolder: import_path11.default.join(
5867
- import_path11.default.relative(process.cwd(), pathToForestryConfig),
5877
+ publicFolder: import_path10.default.join(
5878
+ import_path10.default.relative(process.cwd(), pathToForestryConfig),
5868
5879
  config2.publicFolder
5869
5880
  ),
5870
5881
  collections,
@@ -5931,18 +5942,18 @@ var createPackageJSON = async () => {
5931
5942
  };
5932
5943
  var createGitignore = async ({ baseDir }) => {
5933
5944
  logger.info(logText("No .gitignore found, creating one"));
5934
- import_fs_extra13.default.outputFileSync(import_path11.default.join(baseDir, ".gitignore"), "node_modules");
5945
+ import_fs_extra13.default.outputFileSync(import_path10.default.join(baseDir, ".gitignore"), "node_modules");
5935
5946
  };
5936
5947
  var updateGitIgnore = async ({
5937
5948
  baseDir,
5938
5949
  items
5939
5950
  }) => {
5940
5951
  logger.info(logText(`Adding ${items.join(",")} to .gitignore`));
5941
- const gitignoreContent = import_fs_extra13.default.readFileSync(import_path11.default.join(baseDir, ".gitignore")).toString();
5952
+ const gitignoreContent = import_fs_extra13.default.readFileSync(import_path10.default.join(baseDir, ".gitignore")).toString();
5942
5953
  const newGitignoreContent = [...gitignoreContent.split("\n"), ...items].join(
5943
5954
  "\n"
5944
5955
  );
5945
- await import_fs_extra13.default.writeFile(import_path11.default.join(baseDir, ".gitignore"), newGitignoreContent);
5956
+ await import_fs_extra13.default.writeFile(import_path10.default.join(baseDir, ".gitignore"), newGitignoreContent);
5946
5957
  };
5947
5958
  var addDependencies = async (config2, env, params) => {
5948
5959
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
@@ -6110,7 +6121,7 @@ var addContentFile = async ({
6110
6121
  return () => ({
6111
6122
  exists: env.sampleContentExists,
6112
6123
  path: env.sampleContentPath,
6113
- parentPath: import_path11.default.dirname(env.sampleContentPath)
6124
+ parentPath: import_path10.default.dirname(env.sampleContentPath)
6114
6125
  });
6115
6126
  }
6116
6127
  },
@@ -6133,7 +6144,7 @@ ${titleText(" TinaCMS ")} backend initialized!`));
6133
6144
  return `${x.key}=${x.value || "***"}`;
6134
6145
  }).join("\n") + `
6135
6146
  TINA_PUBLIC_IS_LOCAL=true`;
6136
- const envFile = import_path11.default.join(process.cwd(), ".env");
6147
+ const envFile = import_path10.default.join(process.cwd(), ".env");
6137
6148
  if (!import_fs_extra13.default.existsSync(envFile)) {
6138
6149
  logger.info(`Adding .env file to your project... \u2705`);
6139
6150
  import_fs_extra13.default.writeFileSync(envFile, envFileText);
@@ -6197,7 +6208,7 @@ var addReactiveFile = {
6197
6208
  dataLayer
6198
6209
  }) => {
6199
6210
  var _a, _b;
6200
- const packageJsonPath = import_path11.default.join(baseDir, "package.json");
6211
+ const packageJsonPath = import_path10.default.join(baseDir, "package.json");
6201
6212
  await writeGeneratedFile({
6202
6213
  generatedFile,
6203
6214
  typescript: config2.typescript,
@@ -1,6 +1,6 @@
1
- import { BuildOptions, InlineConfig, Plugin } from 'vite';
2
- import { Database } from '@tinacms/graphql';
3
- import { ConfigManager } from '../config-manager';
1
+ import type { Database } from '@tinacms/graphql';
2
+ import { type BuildOptions, type InlineConfig, type Plugin } from 'vite';
3
+ import type { ConfigManager } from '../config-manager';
4
4
  /**
5
5
  * This type is duplicated in he `TinaMediaStore`
6
6
  * It represents the files that are available at build time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-a690e47-20241003005744",
3
+ "version": "0.0.0-aaceea1-20241023062538",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "@types/prompts": "^2.4.9",
39
39
  "@types/yup": "^0.29.14",
40
40
  "jest": "^29.7.0",
41
- "@tinacms/scripts": "1.2.3"
41
+ "@tinacms/scripts": "1.3.0"
42
42
  },
43
43
  "dependencies": {
44
44
  "@graphql-codegen/core": "^2.6.8",
@@ -52,6 +52,7 @@
52
52
  "@rollup/pluginutils": "^5.1.2",
53
53
  "@svgr/core": "8.1.0",
54
54
  "@tailwindcss/aspect-ratio": "^0.4.2",
55
+ "@tailwindcss/container-queries": "^0.1.1",
55
56
  "@tailwindcss/typography": "^0.5.15",
56
57
  "@vitejs/plugin-react": "3.1.0",
57
58
  "altair-express-middleware": "^7.3.6",
@@ -84,12 +85,12 @@
84
85
  "vite": "^4.5.5",
85
86
  "yup": "^0.32.11",
86
87
  "zod": "^3.23.8",
87
- "@tinacms/app": "0.0.0-a690e47-20241003005744",
88
- "@tinacms/graphql": "1.5.4",
88
+ "@tinacms/app": "0.0.0-aaceea1-20241023062538",
89
+ "@tinacms/graphql": "1.5.6",
89
90
  "@tinacms/metrics": "1.0.7",
90
- "@tinacms/search": "1.0.31",
91
- "tinacms": "0.0.0-a690e47-20241003005744",
92
- "@tinacms/schema-tools": "1.6.4"
91
+ "@tinacms/search": "1.0.33",
92
+ "@tinacms/schema-tools": "1.6.6",
93
+ "tinacms": "0.0.0-aaceea1-20241023062538"
93
94
  },
94
95
  "publishConfig": {
95
96
  "registry": "https://registry.npmjs.org"