NpmPublishSettingsExtensions.

FromSource(NpmPublishSettings, string) Method

Summary

Sets the source to publish.

Syntax

public static NpmPublishSettings FromSource(this NpmPublishSettings settings, string source)

Parameters

Name Type Description
settings NpmPublishSettings The settings.
source string Source to publish. A folder containing a package.json file or an url or file path to a gzipped tar archive containing a single folder with a package.json file inside.

Return Value

Type Description
NpmPublishSettings The settings instance with Source set to source.
GitHub
Discussion