Skip to content

build: remove redundant TypeScript compilation from npm lifecycles #19

Closed

Description

@abruption

Problem

prepare, prepack, and pretest each run the TypeScript build. smoke:package also performs clean and build before invoking npm pack. npm pack therefore compiles the same source multiple times, and the release workflow repeats more builds through npm ci, test, and package smoke.

Required changes

  • preserve clone installation support that depends on prepare
  • ensure npm pack always contains freshly built runtime files
  • compile once per logical test or package operation where practical
  • keep stale dist files from entering the package
  • retain the published-file allowlist and help/version installation checks
  • document the intended lifecycle so future script changes do not reintroduce duplication

Acceptance criteria

  • npm ci from a fresh clone produces a working CLI
  • npm test and npm run smoke:package pass
  • npm pack includes only the approved runtime and documentation files
  • lifecycle output demonstrates that redundant builds were removed

Activity

  1. added
    enhancement
    on Sep 20, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions