Skip to content

Print all publishing files in jsr publish #979

@ai

Description

@ai

I try to reduce unnecessary files in node_modules for performance and minimalism reasons.

Right now, during publishing step there is no way to check what files I am going to publish. In contrast, when I do npm publish I see the list:

$ npm publish                      
npm notice 📦  nanoid@5.1.0
npm notice Tarball Contents
npm notice 1.1kB LICENSE
npm notice 14.3kB README.md
npm notice 1.1kB bin/nanoid.js
npm notice 332B eslint.config.js
npm notice 2.6kB index.browser.js
npm notice 2.5kB index.d.ts
npm notice 3.4kB index.js
npm notice 197B nanoid.js
npm notice 983B non-secure/index.d.ts
npm notice 1.1kB non-secure/index.js
npm notice 2.9kB package.json
npm notice 255B url-alphabet/index.js
npm notice Tarball Details
npm notice name: nanoid
npm notice version: 5.1.0
npm notice filename: nanoid-5.1.0.tgz
npm notice package size: 27.0 kB
npm notice unpacked size: 89.2 kB

I think adding this output to jsr publish is good because:

  1. It allows debugging publish.include before really publishing package.
  2. It will remind developers that they are publishing dev configs to the registry (and using resources of users).
  3. It may remind of forgotten file when you added a file, but forgot to add it to publish.include.

Metadata

Metadata

Assignees

No one assigned

    Labels

    publishingProblems with publishing

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions