Add sync front component (#17748)
## Context Allow twenty apps to sync front components
This commit is contained in:
@@ -5,7 +5,7 @@ type JsonManifestInput = {
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
frontComponents?: Array<{
|
||||
builtComponentChecksum?: string | null;
|
||||
builtComponentChecksum?: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
[key: string]: unknown;
|
||||
@@ -24,7 +24,7 @@ export const normalizeManifestForComparison = <T extends JsonManifestInput>(
|
||||
...component,
|
||||
builtComponentChecksum: component.builtComponentChecksum
|
||||
? '[checksum]'
|
||||
: null,
|
||||
: '',
|
||||
})),
|
||||
sources: {}, // removing sources for now, waiting compressed file implementation
|
||||
});
|
||||
|
||||
@@ -195,7 +195,7 @@ export const buildManifest = async (
|
||||
componentName: component.name,
|
||||
sourceComponentPath: relativeFilePath,
|
||||
builtComponentPath: relativeFilePath.replace(/\.tsx?$/, '.mjs'),
|
||||
builtComponentChecksum: null,
|
||||
builtComponentChecksum: '',
|
||||
};
|
||||
|
||||
frontComponents.push(config);
|
||||
|
||||
Reference in New Issue
Block a user