Skip to content

Commit

Permalink
Update migration-object pruning on extract to current key name (found…
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Oct 5, 2023
1 parent d6c9750 commit cbe35b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/lib/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,16 +435,16 @@ class PackExtractor {
if ("type" in docSource) {
if (isActorSource(docSource) || isItemSource(docSource)) {
docSource.name = docSource.name.trim();
delete (docSource as { ownership?: unknown }).ownership;
delete (docSource as { effects?: unknown }).effects;
delete (docSource.system as { _migrations?: unknown })._migrations;
delete (docSource as { ownership?: object }).ownership;
delete (docSource as { effects?: object[] }).effects;
delete (docSource.system as { _migration?: object })._migration;
}

if (isActorSource(docSource)) {
this.#lastActor = docSource;

if (docSource.prototypeToken?.name === docSource.name) {
delete (docSource as { prototypeToken?: unknown }).prototypeToken;
delete (docSource as { prototypeToken?: object }).prototypeToken;
} else if (docSource.prototypeToken) {
const withToken: {
img: ImageFilePath;
Expand Down

0 comments on commit cbe35b3

Please sign in to comment.