Npm Package
The main configuration for a package
Properties
Package's npm dependencies.
Main js entry file. Can also be set via packageJsonFile, packageJsonTemplateFile or packageJson
A location of the .npmignore
file. Defaults to NpmPublishExtension.npmIgnore
package.json
customisation container.
If set, fully disregards main, types&packageJson configurations. Used as-is.
Similar to packageJsonFile except allows the options to be overridden by the packageJson options.
NPM package name. Defaults to Project.getName.
A location of the README.md
file. If set, the file will be moved to package assembly root and renamed to README.md (regardless of the actual name). Defaults to NpmPublishExtension.readme
Optional npm scope. If set, the package name will be constructed as @{scope}/{packageName}
. Defaults to NpmPublishExtension.organization.
Main d.ts entry file. Can also be set via packageJsonFile, packageJsonTemplateFile or packageJson
NPM package version. Defaults to NpmPublishExtension.version.
Functions
Convenience DSL to configure package's dependencies
Registers an arbitrary npm dependency for the package
Registers a dev npm dependency for the package
Registers a normal npm dependency for the package
Registers an optional npm dependency for the package
Convenience DSL to customise package.json
Registers a peer npm dependency for the package