@tinacms/cli 0.60.4 → 0.60.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # tinacms-cli
2
2
 
3
+ ## 0.60.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 399fbf4fa: Fix an issue where builds weren't happening during CI, this is only an issue for the experimental data layer
8
+
3
9
  ## 0.60.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ var commander = __toModule(require("commander"));
114
114
 
115
115
  // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/cli/package.json
116
116
  var name = "@tinacms/cli";
117
- var version = "0.60.4";
117
+ var version = "0.60.5";
118
118
 
119
119
  // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/cli/src/utils/theme.ts
120
120
  var import_chalk = __toModule(require("chalk"));
@@ -541,6 +541,16 @@ stack: ${code.stack || "No stack was provided"}`);
541
541
  }
542
542
  };
543
543
  let ready = false;
544
+ const build = async (noSDK2) => {
545
+ if (!process.env.CI && !noWatch) {
546
+ await resetGeneratedFolder();
547
+ }
548
+ const database2 = await (0, import_graphql7.createDatabase)({ store, bridge });
549
+ await compile(null, null);
550
+ const schema = await (0, import_graphql7.buildSchema)(rootPath2, database2);
551
+ await genTypes({ schema }, () => {
552
+ }, { noSDK: noSDK2 });
553
+ };
544
554
  if (!noWatch && !process.env.CI) {
545
555
  import_chokidar.default.watch([`${rootPath2}/**/*.{ts,gql,graphql}`], {
546
556
  ignored: `${import_path3.default.resolve(rootPath2)}/.tina/__generated__/**/*`
@@ -576,17 +586,11 @@ stack: ${code.stack || "No stack was provided"}`);
576
586
  }
577
587
  }
578
588
  });
579
- }
580
- const build = async (noSDK2) => {
581
- if (!process.env.CI && !noWatch) {
582
- await resetGeneratedFolder();
589
+ } else {
590
+ if (shouldBuild) {
591
+ await build(noSDK);
583
592
  }
584
- const database2 = await (0, import_graphql7.createDatabase)({ store, bridge });
585
- await compile(null, null);
586
- const schema = await (0, import_graphql7.buildSchema)(rootPath2, database2);
587
- await genTypes({ schema }, () => {
588
- }, { noSDK: noSDK2 });
589
- };
593
+ }
590
594
  const state = {
591
595
  server: null,
592
596
  sockets: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.60.4",
3
+ "version": "0.60.5",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [