jsr icon indicating copy to clipboard operation
jsr copied to clipboard

Print all publishing files in `jsr publish`

Open ai opened this issue 10 months ago • 1 comments

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 📦  [email protected]
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.

ai avatar Feb 22 '25 18:02 ai

hey

when you do npx jsr --dry-run it's show me all included files. But yes on simple publish I don't. It's an issue on deno (JSR CLI is a wrapper of deno CLI)

@lucacasonato where should I report it for deno side ?

AugustinMauroy avatar Feb 22 '25 18:02 AugustinMauroy