Skip to content

Commit

Permalink
add berief docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 6, 2022
1 parent f4ff59c commit 577c91f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ const filename = await resolveFile('README.md', {
})
```

### `resolveLockFile`

Find path to the lock file (`yarn.lock`, `package-lock.json`, `pnpm-lock.yaml`, `npm-shrinkwrap.json`) or throws an error.

```js
import { resolveLockFile } from 'pkg-types'
const lockfile = await resolveFile('.')
```

## Types

**Note:** In order to make types working, you need to install `typescript` as a devDependency.
Expand Down

0 comments on commit 577c91f

Please sign in to comment.