only check if schema exists

This commit is contained in:
Ben Irvin 2023-04-26 11:56:40 +02:00
parent 53a4abeb77
commit ea75258555

View File

@ -116,12 +116,7 @@ const loadContentTypes = async (dir) => {
const contentTypeName = normalizeName(fd.name);
const contentType = await loadDir(join(dir, fd.name));
if (
isEmpty(contentType) ||
(isEmpty(contentType.schema) &&
isEmpty(contentType.actions) &&
isEmpty(contentType.lifecycles))
) {
if (isEmpty(contentType) || isEmpty(contentType.schema)) {
throw new Error(`Could not load content type found at ${dir}`);
}