Skip to content

Harmonize manifest pack names/filenames so we can use foundryvtt-cli #781

@rsek

Description

@rsek

foundryvtt-cli isn't quite ready for use in a github workflow yet (it would need to support folders and ideally expose more of its API), but it's getting there.

one problem i'd like to get ahead of: it expects the filename of a manifest packs entry to match its name. while this is explicitly stated in the API docs it hasn't really been a problem until now.

so we're either going to need to rename a bunch of files (easy) or do migrations for account for the name change (harder).

i'd actually lean towards the latter, as i'll need to futz with a bunch of pack names in the near feature, and it gives me an excuse to standardize the names 😉 . some examples:

i think i'd like to handle this by writing a custom migration method for HTMLField. it can look at a parent document's _documentStats, and if it's below a certain system version, it can do the appropriate replacements.

that'd probably be easier after migrating the rest of our custom subclasses to the v10 DataModel but that's already something i'm thinking about after #762. and, IIRC there's a way to flag for HTMLField in template.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions