Skip to content

Narrow files in cli/package.json — the npm tarball ships both distributions #654

Description

@Kamirus

cli/package.json has files: ["*"] with a few exclusions, so the published ic-mops tarball carries both distributions: the unbundled dist/ tree that bin actually points at, and the ~5.9 MB bun bundle/cli.js that nothing in the npm install path uses.

The bundle reaches its users a different way — cli-releases/install.sh downloads bundle/cli.tgz from the releases canister (uploaded by cli/release-cli.ts), which carries its own trimmed package.json.

Excluding bundle/ from files would roughly halve the npm download. Worth checking wasm/, templates/ and the declarations while in there.

Pre-existing; found while investigating the @dfinity/pic postinstall in #642.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions