Documentation
    Preparing search index...

    Class AutoDirective

    Processes pakk directives in the packageJson. They are strings that could be present at either on a key or on a value. They can start with a # to let them be interpreted as comments by the shell.

    • pakk:not-distributed will remove the entry when compiling the distributed package.json. When placed on a postinstall script, its effect will be similar to what pinst does.

      {
      "scripts": {
      "postinstall": "svelte-kit sync # pakk:not-distributed",
      }
      }

    Implements

    • PakkFeature
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    order: 5

    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

    • 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