mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-28 20:11:48 -04: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/git-resolver
Resolver for git-hosted packages
Installation
pnpm add @pnpm/git-resolver
Usage
'use strict'
const createResolveFromNpm = require('@pnpm/git-resolver').default
const resolveFromNpm = createResolveFromNpm({})
resolveFromNpm({
pref: 'kevva/is-negative#16fd36fe96106175d02d066171c44e2ff83bc055'
})
.then(resolveResult => console.log(JSON.stringify(resolveResult, null, 2)))
//> {
// "id": "github.com/kevva/is-negative/16fd36fe96106175d02d066171c44e2ff83bc055",
// "normalizedPref": "github:kevva/is-negative#16fd36fe96106175d02d066171c44e2ff83bc055",
// "resolution": {
// "tarball": "https://codeload.github.com/kevva/is-negative/tar.gz/16fd36fe96106175d02d066171c44e2ff83bc055"
// },
// "resolvedVia": "git-repository"
// }
License
MIT