mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-28 11:01:30 -04:00
Library packages had `prepublishOnly: pn compile`, which expands to `tsgo --build && pn lint --fix`. During `pn release` that runs eslint against ~150 packages for no benefit — the code has already been linted in CI and the release flow's upfront compile has already built dist/. Switch lib prepublishOnly to a bare `tsgo --build` so the safety-net compile stays but the per-package eslint cost is gone.
@pnpm/logger
Logger for pnpm
Installation
pnpm add @pnpm/logger
Usage
@pnpm/logger is mostly just a wrapper over bole.
Logging is done the same way as in bole. To listed for logs, use streamParser or create
a new parser with createStreamParser().
import logger, {streamParser} from '@pnpm/logger'
logger.debug({ foo: 'bar' })
streamParser.on('data', msg => {
// ...
})
License
MIT