jsr-io / jsr

The open-source package registry for modern JavaScript and TypeScript
https://jsr.io
MIT License
2.29k stars 100 forks source link

error[excluded-module]: module in package's module graph was excluded from publishing #323

Closed FlatMapIO closed 4 months ago

FlatMapIO commented 5 months ago

When I release a package, jsr checks for .d.ts in the deep dependencies in node_modules during slow type check and tells me the following error.


Checking for slow types in the public API...
error[excluded-module]: module in package's module graph was excluded from publishing
 --> /Projects/node_modules/.pnpm/oslo@1.1.3/node_modules/oslo/dist/crypto/index.d.ts
  = hint: remove the module from 'exclude' and/or 'publish.exclude' in the config file

  info: excluded modules referenced via a package export will error at runtime due to not existing in the package
  docs: https://jsr.io/go/excluded-module

error[excluded-module]: module in package's module graph was excluded from publishing
 --> /Projects/node_modules/.pnpm/oslo@1.1.3/node_modules/oslo/dist/crypto/index.js
  = hint: remove the module from 'exclude' and/or 'publish.exclude' in the config file

  info: excluded modules referenced via a package export will error at runtime due to not existing in the package
  docs: https://jsr.io/go/excluded-module
ƒ
error[excluded-module]: module in package's module graph was excluded from publishing
 --> /Projects/node_modules/.pnpm/oslo@1.1.3/node_modules/oslo/dist/encoding/index.d.ts
  = hint: remove the module from 'exclude' and/or 'publish.exclude' in the config file
lucacasonato commented 5 months ago

@dsherret PTAL

dsherret commented 5 months ago

@FlatMapIO do you have a package where I could try to reproduce this?

FlatMapIO commented 5 months ago

@dsherret created: https://github.com/FlatMapIO/saas-kit.git