{"name":"@pnpm/lifecycle","version":"17.1.3","description":"Package lifecycle hook runner","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=18.12"},"repository":{"type":"git","url":"https://github.com/pnpm/pnpm/blob/main/exec/lifecycle"},"keywords":["pnpm9","pnpm","lifecycle","scripts"],"license":"MIT","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"homepage":"https://github.com/pnpm/pnpm/blob/main/exec/lifecycle#readme","peerDependencies":{"@pnpm/logger":"^5.1.0"},"dependencies":{"@pnpm/npm-lifecycle":"^3.0.4","is-windows":"^1.0.2","path-exists":"^4.0.0","run-groups":"^3.0.1","@pnpm/directory-fetcher":"8.0.7","@pnpm/core-loggers":"10.0.6","@pnpm/error":"6.0.1","@pnpm/link-bins":"10.0.9","@pnpm/store-controller-types":"18.1.5","@pnpm/read-package-json":"9.0.7","@pnpm/types":"12.1.0"},"devDependencies":{"@types/is-windows":"^1.0.2","@types/rimraf":"^3.0.2","@zkochan/rimraf":"^3.0.2","load-json-file":"^6.2.0","@pnpm/lifecycle":"17.1.3","@pnpm/logger":"5.2.0","@pnpm/test-ipc-server":"0.0.0","@pnpm/prepare":"0.0.101","@pnpm/test-fixtures":"0.1.31"},"funding":"https://opencollective.com/pnpm","exports":{".":"./lib/index.js"},"scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","_test":"jest","test":"pnpm run compile && pnpm run _test","fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","compile":"tsc --build && pnpm run lint --fix"},"_id":"@pnpm/lifecycle@17.1.3","_integrity":"sha512-j+m2C+cs7XHQ6VM1hjm5JVXvYkG7xMbCbbvaaICaidf5fFFdvpG6ouTYeqiu7SFtt34VnxqC5s+D0wlRmQIxSQ==","_resolved":"/tmp/b3dfc4166f7947522069f9464de3651d/pnpm-lifecycle-17.1.3.tgz","_from":"file:pnpm-lifecycle-17.1.3.tgz","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-j+m2C+cs7XHQ6VM1hjm5JVXvYkG7xMbCbbvaaICaidf5fFFdvpG6ouTYeqiu7SFtt34VnxqC5s+D0wlRmQIxSQ==","shasum":"48a2cf46e90b26a215e79102f70b081ff861ddcf","tarball":"http://registry-npm.ywwl.com/@pnpm/lifecycle/download/@pnpm/lifecycle-17.1.3.tgz","fileCount":12,"unpackedSize":28392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIMYONTkQ/LWp9+FdYK+Nx77uhATbOxPBUpl0T62MNkAiBq1lzFAK67ePvR7YEbqBpudH4nV0TCVv1dbW8lug8oSw=="}],"size":9230,"noattachment":false,"key":"/@pnpm/lifecycle/-/@pnpm/lifecycle-17.1.3.tgz"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lifecycle_17.1.3_1724686114530_0.06254661133255746"},"_hasShrinkwrap":false,"readme":"# @pnpm/lifecycle\n\n> Package lifecycle hook runner\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/lifecycle.svg)](https://www.npmjs.com/package/@pnpm/lifecycle)\n<!--/@-->\n\n## Installation\n\n```sh\npnpm add @pnpm/logger @pnpm/lifecycle\n```\n\n## Usage\n\n```ts\nimport runLifecycleHook, {runPostinstallHooks} from '@pnpm/lifecycle'\n\nconst targetPkgRoot = path.resolve('node_modules/target-pkg')\nconst pkg = require(path.join(targetPkgRoot, 'package.json'))\n\n// Run a specific hook\nawait runLifecycleHook('preinstall', pkg, {\n  pkgId: 'target-pkg/1.0.0',\n  pkgRoot: targetPkgRoot,\n  rawConfig: {},\n  rootModulesDir: path.resolve('node_modules'),\n  unsafePerm: true,\n})\n\n// Run all install hooks\nawait runPostinstallHooks({\n  pkgId: 'target-pkg/1.0.0',\n  pkgRoot: targetPkgRoot,\n  rawConfig: {},\n  rootModulesDir: path.resolve('node_modules'),\n  unsafePerm: true,\n})\n```\n\n## API\n\n### `runLifecycleHook(stage, packageManifest, opts): Promise<void>`\n\n### `runPostinstallHooks(opts): Promise<void>`\n\n## License\n\nMIT\n","publish_time":1724686114684,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1724686114684,"dist-tags":{"dev":"0.0.0-20230605-20230605142810","latest":"1001.0.37","latest-10":"1001.0.39","latest-6":"12.1.10","latest-9":"900.0.4","next":"8.1.1","pnpm-temp":"9.2.2"}}