@tinacms/cli 1.5.7 → 1.5.8

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
31
31
  var import_clipanion6 = require("clipanion");
32
32
 
33
33
  // package.json
34
- var version = "1.5.7";
34
+ var version = "1.5.8";
35
35
 
36
36
  // src/next/commands/dev-command/index.ts
37
37
  var import_clipanion = require("clipanion");
@@ -731,6 +731,7 @@ var createConfig = async ({
731
731
  noWatch,
732
732
  rollupOptions
733
733
  }) => {
734
+ var _a, _b, _c;
734
735
  const publicEnv = {};
735
736
  Object.keys(process.env).forEach((key) => {
736
737
  if (key.startsWith("TINA_PUBLIC_") || key.startsWith("NEXT_PUBLIC_") || key === "NODE_ENV" || key === "HEAD") {
@@ -781,6 +782,7 @@ var createConfig = async ({
781
782
  include: ["react/jsx-runtime", "react/jsx-dev-runtime"]
782
783
  },
783
784
  server: {
785
+ host: (_c = (_b = (_a = configManager.config) == null ? void 0 : _a.build) == null ? void 0 : _b.host) != null ? _c : false,
784
786
  watch: noWatch ? {
785
787
  ignored: ["**/*"]
786
788
  } : void 0,
@@ -3804,16 +3806,16 @@ async function initStaticTina({
3804
3806
  );
3805
3807
  let isForestryMigration = false;
3806
3808
  if (hasForestryConfig) {
3807
- const { collectionString, importStatements, templateCodeString } = await forestryMigrate({
3809
+ const res = await forestryMigrate({
3808
3810
  usingTypescript,
3809
3811
  pathToForestryConfig,
3810
3812
  rootPath,
3811
3813
  framework
3812
3814
  });
3813
- if (collectionString) {
3814
- templateCode = templateCodeString;
3815
- collections = collectionString;
3816
- extraText = importStatements;
3815
+ if (res) {
3816
+ templateCode = res.templateCodeString;
3817
+ collections = res.collectionString;
3818
+ extraText = res.importStatements;
3817
3819
  isForestryMigration = true;
3818
3820
  }
3819
3821
  }
@@ -3838,7 +3840,7 @@ async function initStaticTina({
3838
3840
  }
3839
3841
  }
3840
3842
  await addDependencies(packageManager);
3841
- if (hasForestryConfig) {
3843
+ if (isForestryMigration) {
3842
3844
  await addTemplateFile({ baseDir: "", usingTypescript, templateCode });
3843
3845
  }
3844
3846
  await addConfigFile({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -58,7 +58,7 @@
58
58
  "@tailwindcss/aspect-ratio": "^0.4.0",
59
59
  "@tailwindcss/line-clamp": "^0.3.1",
60
60
  "@tailwindcss/typography": "^0.5.9",
61
- "@tinacms/app": "1.2.7",
61
+ "@tinacms/app": "1.2.8",
62
62
  "@tinacms/datalayer": "1.2.8",
63
63
  "@tinacms/graphql": "1.4.8",
64
64
  "@tinacms/metrics": "1.0.2",