@crombolo/transfer 0.21.0 → 0.23.0

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/package.json +3 -3
  2. package/src/export.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/transfer",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Content transfer for crombolo: bundles of content moved between environments.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@crombolo/core": "0.21.0",
32
- "@crombolo/data": "0.21.0"
31
+ "@crombolo/core": "0.23.0",
32
+ "@crombolo/data": "0.23.0"
33
33
  }
34
34
  }
package/src/export.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * for the case where the point is to move work in progress.
12
12
  */
13
13
  import type { DocumentAggregate, DocumentValue } from '@crombolo/core'
14
- import { ObjectTypes } from '@crombolo/core'
14
+ import { isSystemContentType, ObjectTypes } from '@crombolo/core'
15
15
  import {
16
16
  ComponentRepository,
17
17
  type ContentKind,
@@ -288,6 +288,12 @@ export async function exportBundle(db: Db, options: ExportOptions): Promise<Expo
288
288
  const outside = [...referenced].filter((key) => !carried.has(key))
289
289
  const expected: BundleDependency[] = []
290
290
  for (const row of await nodes.byKeys(outside)) {
291
+ // A type Crombolo ships — a menu item's, in a menu's blocks — is on every site.
292
+ if (
293
+ (row.objectType === ObjectTypes.DocumentType && isSystemContentType('document', row.key)) ||
294
+ (row.objectType === ObjectTypes.MediaType && isSystemContentType('media', row.key))
295
+ )
296
+ continue
291
297
  expected.push({
292
298
  key: row.key,
293
299
  objectType: row.objectType ?? '',