A linting tool for validating the `exports` field in JSR's `jsr.json` manifest files, designed to be used as a build hook in `tsdown` or `unbuild`. Current stable version is 0.4.2. Released under MIT license with active development. Key differentiator: unlike `publint` which lints npm `package.json` exports, this tool specifically targets JSR's `jsr.json` exports, making it essential for library authors distributing via both npm and JSR. It fully supports TypeScript and requires Node >= 20. The lint runs after the build is done, checking that all exported entries match the actual built files.
npm install jsr-exports-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates the simplest setup for tsdown using the default jsr.json path.
Update import paths from 'tsdown-jsr-exports-lint' to 'jsr-exports-lint'.
Upgrade tsdown to >=0.9.6 and unbuild to >=1.0.0.
Use hooks: { 'build:done': lintJsrExports() } — with parentheses.Import from 'jsr-exports-lint/tsdown' or 'jsr-exports-lint/unbuild'.
Call it: hooks: { 'build:done': lintJsrExports() }.Use named import: import { lintJsrExports } from 'jsr-exports-lint/tsdown'.