package-json-type
    Preparing search index...

    Interface IPublishConfig

    This is a set of config values that will be used at publish-time. It's especially handy if you want to set the tag, registry or access, so that you can ensure that a given package is not tagged with “latest”, published to the global public registry or that a scoped module is private by default. Any config values can be overridden, but only "tag", "registry" and "access" probably matter for the purposes of publishing. See npm-config to see the list of config options that can be overridden.

    • Public Registry
    {
    "publishConfig":{
    "registry":"https://registry.npmjs.org"
    }
    }
    • Your Private Registry
    {
    "publishConfig":{
    "registry":"http://your-registry.local"
    }
    }
    interface IPublishConfig {
        access?: "public" | "restricted";
        bin?: string | IBinMap;
        browser?: string | IBrowserMap;
        directory?: string;
        executableFiles?: string[];
        exports?: string | IConditionalExport | IExportsMap | null;
        linkDirectory?: boolean;
        main?: string;
        module?: string;
        provenance?: boolean;
        registry?: string;
        tag?: string;
        types?: string;
    }
    Index

    Properties

    access?: "public" | "restricted"

    Access level for scoped packages: "public" or "restricted".

    bin?: string | IBinMap

    Override the bin field for publishing.

    browser?: string | IBrowserMap

    Override the browser field for publishing.

    directory?: string

    The subdirectory to publish. Useful for monorepos where the build output is in a subdirectory.

    executableFiles?: string[]

    Files to mark as executable after extraction. Only relevant for pnpm.

    exports?: string | IConditionalExport | IExportsMap | null

    Override the exports field for publishing.

    linkDirectory?: boolean

    When set to true, the local package will be linked to the virtual store instead of being copied. Only relevant for pnpm.

    main?: string

    Override the main entry point for publishing.

    module?: string

    Override the module entry point for publishing.

    provenance?: boolean

    Provenance attestation for the package. When true, npm generates and publishes provenance statements.

    registry?: string

    The npm registry URL to publish to.

    tag?: string

    The distribution tag to publish to.

    types?: string

    Override the types entry point for publishing.