Documentation
    Preparing search index...

    Class AutoMetadata

    Fills out packageJson fields of the distributed packageJson based on either manually defined key-value pairs or a set of keys that then will be read from the workspace packageJson file. Or both, in which case if a key is defined in both the manual takes precedence.

    Implements

    • PakkFeature
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    order: 6

    The higher the number the later the feature will be invoked within each step.

    The only real use of this is to make sure the sorting of the packageJson file happens last.

    Methods

    • Called once at the start of Autolib, giving a change for each plugin to examine the package.

      The returned examination result is merged together with the other plugins result, sharing them the next step. TODO: Re-evaluate if this is even useful or you should just keep your result in the plugin. This could return void

      Parameters

      • workspacePackage: WorkspacePackage

      Returns Awaitable<Partial<PackageExaminationResult>>

    • A final, synchronous step to modify the packageJson file. The returned object will replace the original one completely, no merging is happening. postprocess steps are happening sequentially, in order the subplugins are defined.

      Parameters

      Returns Replace