fedify icon indicating copy to clipboard operation
fedify copied to clipboard

Separate `@fedify/init` from `@fedify/cli`

Open 2chanhaeng opened this issue 1 month ago • 2 comments

Summary

Separate fedify init from @fedify/cli and create @fedify/init. @fedify/cli must then re-import this to ensure fedify init and fedify test-init function correctly. Additionally, ensure it operates independently to simultaneously resolve #351.

Target Area

  • packages/cli/src/init
  • packages/init

Motivation

fedify init already has enough code to warrant being separated into its own package. With the addition of fedify test-init in #479, the code has grown even longer. Furthermore, the internal addition of the --test-mode argument has raised concerns that it could confuse users. Additionally, considering existing requests like #351, the idea arose to separate fedify init from @fedify/cli and create a new package called @fedify/init.

Risk Assessment

  • Increament of the time for CI/CD by sub-package addition.

Benefits

  • Separation of the concern and reduction the amount of code in @fedify/cli.

2chanhaeng avatar Nov 13 '25 05:11 2chanhaeng