{"name":"@pnpm/lockfile-file","version":"9.0.4","keywords":["pnpm9","pnpm","shrinkwrap","lockfile"],"license":"MIT","_id":"@pnpm/lockfile-file@9.0.4","homepage":"https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-file#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"b20435f408aefb738a0009a6f9d8237f9092d1d4","tarball":"http://registry-npm.ywwl.com/@pnpm/lockfile-file/download/@pnpm/lockfile-file-9.0.4.tgz","fileCount":42,"integrity":"sha512-WkiHN0UegyBB5hsLxEcbqrwJodcCpT1aA37Ngv/lWXWXWv0F0gL3mas4SltVqdVLV5pl5CoujThrzWOhWKD1kw==","signatures":[{"sig":"MEUCIQDWgBN+1PD7xSJyANBZs4x7UfRHQ1tF9PYdkj3vBwcOsAIgX8+rbZQVF3mIB4wcQTgkVuQWHcKFRlblUd497IH8Utg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76470,"size":18079,"noattachment":false,"key":"/@pnpm/lockfile-file/-/@pnpm/lockfile-file-9.0.4.tgz"},"main":"lib/index.js","_from":"file:pnpm-lockfile-file-9.0.4.tgz","types":"lib/index.d.ts","engines":{"node":">=18.12"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pnpm run compile && pnpm run _test","_test":"jest","start":"tsc --watch","compile":"tsc --build && pnpm run lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"_resolved":"/tmp/ea3c65ae0eb554a8c33d9f3db7e9bc28/pnpm-lockfile-file-9.0.4.tgz","_integrity":"sha512-WkiHN0UegyBB5hsLxEcbqrwJodcCpT1aA37Ngv/lWXWXWv0F0gL3mas4SltVqdVLV5pl5CoujThrzWOhWKD1kw==","repository":{"url":"https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-file","type":"git"},"_npmVersion":"10.5.0","description":"Read/write pnpm-lock.yaml files","directories":{},"_nodeVersion":"18.20.2","dependencies":{"ramda":"npm:@pnpm/ramda@0.28.1","semver":"^7.6.0","js-yaml":"npm:@zkochan/js-yaml@0.0.7","sort-keys":"^4.2.0","strip-bom":"^4.0.0","@pnpm/error":"6.0.0","@pnpm/types":"10.0.0","normalize-path":"^3.0.0","@pnpm/constants":"8.0.0","@pnpm/git-utils":"2.0.0","@zkochan/rimraf":"^2.1.3","comver-to-semver":"^1.0.0","write-file-atomic":"^5.0.1","@pnpm/git-resolver":"9.0.1","@pnpm/lockfile-types":"6.0.0","@pnpm/lockfile-utils":"10.1.1","@pnpm/dependency-path":"4.0.0","@pnpm/util.lex-comparator":"3.0.0","@pnpm/merge-lockfile-changes":"6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tempy":"^1.0.1","yaml-tag":"1.1.0","@types/ramda":"0.29.12","@types/semver":"7.5.3","@types/js-yaml":"^4.0.9","write-yaml-file":"^5.0.0","@pnpm/lockfile-file":"9.0.4","@types/normalize-path":"^3.0.2","@types/write-file-atomic":"^4.0.3"},"peerDependencies":{"@pnpm/logger":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lockfile-file_9.0.4_1714987584506_0.048713058458465186","host":"s3://npm-registry-packages"},"readme":"# @pnpm/lockfile-file\n\n> Read/write pnpm-lock.yaml files\n\nReads and writes the wanted (`pnpm-lock.yaml`) and current (`node_modules/.pnpm-lock.yaml`) lockfile files of pnpm.\nLockfile files are the state files of the `node_modules` installed via pnpm. They are like\nthe `package-lock.json` of npm or the `yarn.lock` of Yarn.\n\n## Install\n\n```\npnpm add @pnpm/lockfile-file\n```\n\n## API\n\n### `readWantedLockfile(pkgPath, opts) => Promise<Lockfile>`\n\nReads the `pnpm-lock.yaml` file from the root of the package.\n\n#### Arguments\n\n* `pkgPath` - *Path* - the path to the project\n* `opts.ignoreIncompatible` - *Boolean* - `false` by default. If `true`, throws an error\nif the lockfile file format is not compatible with the current library.\n\n### `readCurrentLockfile(virtualStoreDir, opts) => Promise<Lockfile>`\n\nReads the lockfile file from `<virtualStoreDir>/lock.yaml`.\n\n### `existsNonEmptyWantedLockfile(pkgPath) => Promise<Boolean>`\n\nReturns `true` if a `pnpm-lock.yaml` exists in the root of the package.\n\n### `writeLockfiles(opts) => Promise<void>`\n\nWrites the wanted/current lockfile files. When they are empty, removes them.\n\n#### Arguments\n\n* `opts.wantedLockfile`\n* `opts.wantedLockfileDir`\n* `opts.currentLockfile`\n* `opts.currentLockfileDir`\n* `[opts.forceSharedFormat]`\n\n### `writeWantedLockfile(pkgPath, wantedLockfile) => Promise<void>`\n\nWrites the wanted lockfile file only. Sometimes it is needed just to update the wanted lockfile\nwithout touching `node_modules`.\n\n### `writeCurrentLockfile(virtualStoreDir, currentLockfile) => Promise<void>`\n\nWrites the current lockfile file only.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1714987584637,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1714987584637,"dist-tags":{"dev":"0.0.0-20230605-20230605142810","latest":"9.1.3","latest-6":"4.3.2","next":"2.0.0-0","pnpm-temp":"3.0.12"}}