@dysonic/dy-cli-cmd-publish
v1.0.8
Published
Built-in publish command for dy-cli package publishing
Readme
@dysonic/dy-cli-cmd-publish
Architecture
flowchart LR
user["User"] --> command["PublishCommand"]
command --> tasks["project task / workspace task"]
tasks --> project["npm publish"]
tasks --> workspace["build / test / npm publish"]@dysonic/dy-cli-cmd-publish implements the dy-cli publish command.
It is responsible for publishing project packages.
For the Chinese version, see README_ZH.md.
Role
This package handles both:
- package publishing for
singleprojects and monorepo child packages - default full-release publishing when executed at a fixed monorepo root
Main Contents
src/commands/publish.tspublish command entrysrc/tasks/publish-project-task.tspublish execution task
Command Semantics
dy-cli publish
dy-cli publish --dry-run
dy-cli publish --tag betaSupported Capabilities
--dry-run--tag--access--otp--registry
Behavior Constraints
- running it at a monorepo root publishes the full child-package set by default
- in monorepo child packages, it searches upward for the nearest
dy.config.ts - packages with
private: trueare rejected - when the workspace is in dy-cli prerelease mode, every target package must already have a stable version published; otherwise the command aborts before publishing
dy-cli publishrefuses to run from npm publish lifecycle scripts such asprepublishOnly,publish, orpostpublish; use areleasescript name instead
Design Notes
This package has been refactored from a publish-script wrapper into a real publish command implementation.
It stays behind the dy-cli publish entry instead of asking users to orchestrate registry publishing manually.
