mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-02 14:07:22 -05:00
* refactor: store link values before converting to references * fix: use .sort() without localeCompare https://github.com/pnpm/pnpm/pull/8128#discussion_r1614031566 > Nit, but you probably just want to call sort without a comparison > function; these are already strings and locale compare is not a good > comparison for anything but human readable strings since it will > differ on different people's machines based on their language setting. > I've hit this too many times before for code gen. * feat: configure meta-updater to write test/tsconfig.json files * fix: relative imports for __typings__ * chore: `pnpm run meta-updater` * fix: explicitly use test/tsconfig.json for ts-jest
@pnpm/error
An error class for pnpm errors
Installation
pnpm add @pnpm/error
Usage
import { PnpmError } from '@pnpm/error'
try {
throw new PnpmError('THE_ERROR_CODE', 'The error message')
} catch (err: any) { // eslint-disable-line
console.log(err.code)
//> ERR_PNPM_THE_ERROR_CODE
console.log(err.message)
//> The error message
}
License
MIT