Class

SubdirectoryPublishStrategy

utils.SubdirectoryPublishStrategy(dir, prePublishScriptopt)

Constructor

# new SubdirectoryPublishStrategy(dir, prePublishScriptopt)

For repos whose publishable output lives in a subdirectory with its own package.json -- e.g. dist/lib from ng-packagr -- rather than the repo root.

Publishes a subdirectory's own package.json, optionally building it first.

Parameters:
Name Type Attributes Description
dir string

Directory (relative to the repo root) to publish

prePublishScript string <optional>

npm script to run before publishing

Implements:
  • PublishStrategy

View Source cli/commands/tag-release.command.ts, line 57