Files
pnpm/config/parse-overrides
Brandon Cheng c7e1b6fae8 chore: configure TypeScript project references for tests (#8128)
* 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
2024-05-31 12:48:13 +02:00
..
2024-05-12 01:57:58 +02:00
2024-05-12 01:57:58 +02:00

@pnpm/parse-overrides

Parse overrides

Installation

pnpm add @pnpm/parse-overrides

Usage

import { parseOverrides } from '@pnpm/parse-overrides'

parseOverrides({
  'foo': '^1.0.0',
  'quux': 'npm:@myorg/quux@^1.0.0',
  'bar@^2.1.0': '3.0.0',
  'qar@1>zoo': '2',
})
// Returns an array of parsed overrides

License

MIT