@jspm/generator
    Preparing search index...

    Interface Publish

    Options for publishing a package

    interface Publish {
        package: string | SourceData;
        importMap?: boolean | IImportMap;
        install?: boolean;
        provider?: string;
        version?: string;
        name?: string;
    }
    Index

    Properties

    package: string | SourceData

    Publish package is a URL containing files to publish. The package.json file at the base of this path will be respected for the fields "name", "version", "files", and "ignore", as with npm conventions.

    Virtual publishes may also be made by providing source data directly as a file path to source buffer record.

    importMap?: boolean | IImportMap

    Optional import map to include for the publish, published as the importmap.json file in the package.

    true

    Publishes the current generator instance's import map, alongside a link operation of the package (see the Publish.install option for more info). Any URLs in the import map pointing to the package being published will automatically be updated to reflect the published URLs.

    The benefit of defining the import map separately is that this provides a strong definition of the publish execution model.

    install?: boolean

    Whether to first install the package before publishing, thereby populating the import map for the package.

    By default, when importMap: true is set, and an explicit import map is not otherwise passed, install will be applied.

    Setting this to false, with importMap set to true will use the generator import map without the additional package link operation.

    provider?: string

    Provider to publish to

    version?: string

    Override the version from the package.json

    name?: string

    Override the name from the package.json