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.
cli/package.jsonhasfiles: ["*"]with a few exclusions, so the publishedic-mopstarball carries both distributions: the unbundleddist/tree thatbinactually points at, and the ~5.9 MB bunbundle/cli.jsthat nothing in the npm install path uses.The bundle reaches its users a different way —
cli-releases/install.shdownloadsbundle/cli.tgzfrom the releases canister (uploaded bycli/release-cli.ts), which carries its own trimmedpackage.json.Excluding
bundle/fromfileswould roughly halve the npm download. Worth checkingwasm/,templates/and the declarations while in there.Pre-existing; found while investigating the
@dfinity/picpostinstall in #642.