Skip to content

Speed up npm installation and update oclif dependencies #120

Closed

Description

@EastSun5566

Why

Installing with npm i -g @hackmd/hackmd-cli --ignore-scripts added 749 packages, took 12 minutes, and printed many deprecation warnings.

The runtime dependencies currently include the oclif build/release tool and unused cli-ux, bringing in AWS SDK v2, Yeoman, and legacy oclif packages.

Design

  • Move oclif to development dependencies and remove unused dependencies.
  • Upgrade oclif core and plugins together.
  • Preserve existing commands, table options, hidden token input, and fish completion.

Verification

Install the packed npm package in isolation and check commands and shell completion. Compare package count, installed size, installation time, and deprecation warnings before and after.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions