Skip to content

Commit

Permalink
chore: adjust code owners
Browse files Browse the repository at this point in the history
  • Loading branch information
fireairforce committed Nov 23, 2021
1 parent fd6f12e commit d11ca8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-wolves-admire.md
@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-installation": minor
---

feat: support yarn v2 lockfile transform
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
@@ -1 +1,2 @@
* @zkochan
/packages/plugin-commands-installation/src/import/* @fireairforce
Expand Up @@ -21,7 +21,7 @@ import { parse as parseYarnLock } from '@yarnpkg/lockfile'
import * as yarnCore from '@yarnpkg/core'
import { parseSyml } from '@yarnpkg/parsers'
import exists from 'path-exists'
import recursive from './recursive'
import recursive from '../recursive'
import { yarnLockFileKeyNormalizer } from './yarnUtil'

interface NpmPackageLock {
Expand Down Expand Up @@ -163,7 +163,7 @@ async function readYarnLockFile (dir: string) {
if (lockJsonFile.type === 'success') {
return lockJsonFile.object
} else {
throw new PnpmError('GET_YARN_LOCKFILE_ERR', `Failed With ${lockJsonFile.type}`)
throw new PnpmError('YARN_LOCKFILE_PARSE_FAILED', `Yarn.lock file was ${lockJsonFile.type}`)
}
} else if (yarnLockFileType === YarnLockType.yarn2) {
lockJsonFile = parseYarn2Lock(yarnLockFile)
Expand Down

0 comments on commit d11ca8f

Please sign in to comment.