{"name":"@changesets/pre","version":"2.0.2","license":"MIT","_id":"@changesets/pre@2.0.2","maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"changesets-release-bot","email":"automation+changesets@thinkmill.com.au"},{"name":"emmatown","email":"npm@emmas.town"},{"name":"andarist","email":"mateuszburzynski@gmail.com"}],"homepage":"https://github.com/changesets/changesets/tree/main#readme","bugs":{"url":"https://github.com/changesets/changesets/issues"},"dist":{"shasum":"b35e84d25fca8b970340642ca04ce76c7fc34ced","tarball":"http://registry-npm.ywwl.com/@changesets/pre/download/@changesets/pre-2.0.2.tgz","fileCount":13,"integrity":"sha512-HaL/gEyFVvkf9KFg6484wR9s0qjAXlZ8qWPDkTyKF6+zqjBe/I2mygg3MbpZ++hdi0ToqNUF8cjj7fBy0dg8Ug==","signatures":[{"sig":"MEUCIQCFFwaES0uHaGLRthjOE6g4wKlWWzqgFYUsG/0FdEuPlAIgRkvGhoBj4SzMAukEZFVDNzW79yoHs0MJzgU6EcSWiPA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25959,"size":5420,"noattachment":false,"key":"/@changesets/pre/-/@changesets/pre-2.0.2.tgz"},"main":"dist/changesets-pre.cjs.js","types":"./dist/changesets-pre.cjs.d.ts","module":"dist/changesets-pre.esm.js","exports":{".":{"types":{"import":"./dist/changesets-pre.cjs.mjs","default":"./dist/changesets-pre.cjs.js"},"import":"./dist/changesets-pre.cjs.mjs","module":"./dist/changesets-pre.esm.js","default":"./dist/changesets-pre.cjs.js"},"./package.json":"./package.json"},"gitHead":"3b9298de3daa884f637da087e815e0e0f5754f14","_npmUser":{"name":"changesets-release-bot","email":"automation+changesets@thinkmill.com.au"},"repository":{"url":"git+https://github.com/changesets/changesets.git#main","type":"git"},"_npmVersion":"10.8.2","description":"Utils to make a Changesets repo enter and exit pre mode","directories":{},"_nodeVersion":"20.18.2","dependencies":{"fs-extra":"^7.0.1","@changesets/types":"^6.1.0","@changesets/errors":"^0.2.0","@manypkg/get-packages":"^1.1.3"},"_hasShrinkwrap":false,"devDependencies":{"@changesets/test-utils":"*"},"_npmOperationalInternal":{"tmp":"tmp/pre_2.0.2_1739787933378_0.21358776115423583","host":"s3://npm-registry-packages-npm-production"},"readme":"# @changesets/pre\n\n[![Open on npmx.dev](https://npmx.dev/api/registry/badge/version/@changesets/pre?name=true)](https://npmx.dev/package/@changesets/pre)\n[![View changelog](https://npmx.dev/api/registry/badge/version/@changesets/cli?color=229fe4&value=View+changelog&label=+)](./CHANGELOG.md)\n\nEnter and exit pre mode in a Changesets repo.\n\n## Usage\n\n```ts\nimport { enterPre, exitPre } from \"@changesets/pre\";\n\nawait enterPre(cwd, tag);\n\nlet preState = await readPreState(cwd);\n\n// version packages with @changesets/cli or get a release plan and apply it\nawait exitPre(cwd);\n```\n\nThis package is used by internally by Changesets to enter and exit pre mode along with reading the pre state for the `publish` and `version` commands, you should only need it if you're using `@changesets/assemble-release-plan`, implementing Changesets or want to enter or exit pre mode programmatically.\n\n## Types\n\n```ts\nimport type { PreState } from \"@changesets/types\";\n\nexport function enterPre(cwd: string, tag: string): Promise<void>;\nexport function exitPre(cwd: string): Promise<void>;\nexport function readPreState(cwd: string): Promise<PreState>;\n```\n","publish_time":1739787933548,"_cnpm_publish_time":1739787933548,"dist-tags":{"latest":"3.0.0","next":"3.0.0-next.9","temp":"1.0.9-temp.0"}}