{"name":"@pnpm/lifecycle","version":"15.0.9","keywords":["pnpm8","pnpm","lifecycle","scripts"],"license":"MIT","_id":"@pnpm/lifecycle@15.0.9","homepage":"https://github.com/pnpm/pnpm/blob/main/exec/lifecycle#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"5c4cbd60f48a2ba2880356f3106e9ba3b7a2e4ed","tarball":"http://registry-npm.ywwl.com/@pnpm/lifecycle/download/@pnpm/lifecycle-15.0.9.tgz","fileCount":12,"integrity":"sha512-cjgRtr3MWdoacYuDM4vSJB9y8+4wZ+O5rUWxw73GMxfOvq2nSn9ZE0jnA2dN4N1UeP0697ZabkIpW3zDvP+s+w==","signatures":[{"sig":"MEUCIEYVfOZw8PMlEF2une19nTx37+Up1d9Lbk8fYFIMb/25AiEAl45Cp2Dz7j/NZ1GOacDRFpS9NSVg0uz7Ng7x+IC/HT8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24811,"size":7731,"noattachment":false,"key":"/@pnpm/lifecycle/-/@pnpm/lifecycle-15.0.9.tgz"},"main":"lib/index.js","_from":"file:pnpm-lifecycle-15.0.9.tgz","types":"lib/index.d.ts","engines":{"node":">=16.14"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pnpm run compile && pnpm run _test","_test":"jest","compile":"tsc --build && pnpm run lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"_resolved":"/tmp/22daa4297d41487f430de75dff340e08/pnpm-lifecycle-15.0.9.tgz","_integrity":"sha512-cjgRtr3MWdoacYuDM4vSJB9y8+4wZ+O5rUWxw73GMxfOvq2nSn9ZE0jnA2dN4N1UeP0697ZabkIpW3zDvP+s+w==","repository":{"url":"https://github.com/pnpm/pnpm/blob/main/exec/lifecycle","type":"git"},"_npmVersion":"9.6.7","description":"Package lifecycle hook runner","directories":{},"_nodeVersion":"18.17.1","dependencies":{"run-groups":"^3.0.1","@pnpm/error":"5.0.2","@pnpm/types":"9.2.0","path-exists":"^4.0.0","@pnpm/link-bins":"9.0.6","@pnpm/core-loggers":"9.0.2","@pnpm/npm-lifecycle":"^2.0.1","@pnpm/directory-fetcher":"7.0.0","@pnpm/read-package-json":"8.0.3","@pnpm/store-controller-types":"16.1.0"},"_hasShrinkwrap":false,"devDependencies":{"json-append":"1.1.1","@types/rimraf":"^3.0.2","load-json-file":"^6.2.0","@pnpm/lifecycle":"15.0.9","@zkochan/rimraf":"^2.1.3","@pnpm/test-fixtures":"0.1.9"},"peerDependencies":{"@pnpm/logger":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lifecycle_15.0.9_1694435269374_0.5434335867001645","host":"s3://npm-registry-packages"},"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":1694435269678,"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1694435269678,"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"}}