@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 +6 -0
- package/dist/index.js +15 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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.
|
|
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
|
-
|
|
581
|
-
|
|
582
|
-
await resetGeneratedFolder();
|
|
589
|
+
} else {
|
|
590
|
+
if (shouldBuild) {
|
|
591
|
+
await build(noSDK);
|
|
583
592
|
}
|
|
584
|
-
|
|
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: []
|