{"_id":"@pika/publish","_rev":"2224175","name":"@pika/publish","description":"Publish with pika","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"time":{"modified":"2022-01-08T02:20:14.000Z","created":"2019-01-13T08:19:25.837Z","0.1.4":"2019-01-13T08:53:38.949Z","0.1.3":"2019-01-13T08:47:10.077Z","0.1.2":"2019-01-13T08:27:26.466Z","0.1.1":"2019-01-13T08:22:46.117Z","0.1.0":"2019-01-13T08:19:25.837Z"},"users":{},"versions":{"0.1.4":{"name":"@pika/publish","version":"0.1.4","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.4","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"shasum":"d1310649d575121a5017503f72cc0e9baca1111b","size":10407,"noattachment":false,"key":"/@pika/publish/-/@pika/publish-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pika/publish/download/@pika/publish-0.1.4.tgz"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.4_1547369618677_0.27994867061297213"},"_hasShrinkwrap":false,"publish_time":1547369618949,"_cnpm_publish_time":1547369618949},"0.1.3":{"name":"@pika/publish","version":"0.1.3","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"shasum":"14ab0b1d099e048c6044984877de7e1b84c22ae6","size":10409,"noattachment":false,"key":"/@pika/publish/-/@pika/publish-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pika/publish/download/@pika/publish-0.1.3.tgz"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.3_1547369229985_0.6139033789364878"},"_hasShrinkwrap":false,"publish_time":1547369230077,"_cnpm_publish_time":1547369230077},"0.1.2":{"name":"@pika/publish","version":"0.1.2","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"shasum":"eb1d17d9ca6b935ab17127cc7f0f086516c8cc48","size":10362,"noattachment":false,"key":"/@pika/publish/-/@pika/publish-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pika/publish/download/@pika/publish-0.1.2.tgz"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.2_1547368046308_0.49208819220606803"},"_hasShrinkwrap":false,"publish_time":1547368046466,"_cnpm_publish_time":1547368046466},"0.1.1":{"name":"@pika/publish","version":"0.1.1","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"shasum":"565bf90a101ece926f4d5fb733eaedd365eadb56","size":10382,"noattachment":false,"key":"/@pika/publish/-/@pika/publish-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pika/publish/download/@pika/publish-0.1.1.tgz"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.1_1547367765924_0.02661784993662386"},"_hasShrinkwrap":false,"publish_time":1547367766117,"_cnpm_publish_time":1547367766117},"0.1.0":{"name":"@pika/publish","version":"0.1.0","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"shasum":"8c065284f0d761e3ff50d43bd8c5d103e39da382","size":9098,"noattachment":false,"key":"/@pika/publish/-/@pika/publish-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pika/publish/download/@pika/publish-0.1.0.tgz"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.0_1547367565684_0.9339395031736053"},"_hasShrinkwrap":false,"publish_time":1547367565837,"_cnpm_publish_time":1547367565837}},"readme":"# np [![Build Status](https://travis-ci.org/sindresorhus/np.svg?branch=master)](https://travis-ci.org/sindresorhus/np) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n\n> A better `npm publish`\n\n<div>\n\t<br>\n\t<br>\n\t<a href=\"https://issuehunt.io\">\n\t\t<img src=\"https://user-images.githubusercontent.com/170270/50307315-5c349200-0498-11e9-95bb-e51a8cfc2b15.png\" width=\"600\">\n\t</a>\n\t<br>\n\t<br>\n\t<br>\n</div>\n\n<img src=\"screenshot.gif\" width=\"688\">\n\n\n## Why\n\n- [Interactive UI](#interactive-ui)\n- Ensures you are publishing from the `master` branch\n- Ensures the working directory is clean and that there are no unpulled changes\n- Reinstalls dependencies to ensure your project works with the latest dependency tree\n- Runs the tests\n- Bumps the version in package.json and npm-shrinkwrap.json (if present) and creates a git tag\n- Prevents [accidental publishing](https://github.com/npm/npm/issues/13248) of pre-release versions under the `latest` [dist-tag](https://docs.npmjs.com/cli/dist-tag)\n- Publishes the new version to npm, optionally under a dist-tag\n- Pushes commits and tags to GitHub/GitLab\n- Supports [two-factor authentication](https://docs.npmjs.com/getting-started/using-two-factor-authentication)\n- Opens a prefilled GitHub Releases draft after publish\n\n\n## Install\n\n```\n$ npm install --global np\n```\n\n<a href=\"https://www.patreon.com/sindresorhus\">\n\t<img src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\">\n</a>\n\n\n## Usage\n\n```\n$ np --help\n\n  Usage\n    $ np <version>\n\n    Version can be:\n      patch | minor | major | prepatch | preminor | premajor | prerelease | 1.2.3\n\n  Options\n    --any-branch  Allow publishing from any branch\n    --no-cleanup  Skips cleanup of node_modules\n    --yolo        Skips cleanup and testing\n    --no-publish  Skips publishing\n    --tag         Publish under a given dist-tag\n    --no-yarn     Don't use Yarn\n    --contents    Subdirectory to publish\n\n  Examples\n    $ np\n    $ np patch\n    $ np 1.0.2\n    $ np 1.0.2-beta.3 --tag=beta\n    $ np 1.0.2-beta.3 --tag=beta --contents=dist\n```\n\n\n## Interactive UI\n\nRun `np` without arguments to launch the interactive UI that guides you through publishing a new version.\n\n<img src=\"screenshot-ui.png\" width=\"1290\">\n\n\n## Tips\n\n### npm hooks\n\nYou can use any of the test/version/publish related [npm lifecycle hooks](https://docs.npmjs.com/misc/scripts) in your package.json to add extra behavior.\n\nFor example, here we build the documentation before tagging the release:\n\n```json\n{\n\t\"name\": \"my-awesome-package\",\n\t\"scripts\": {\n\t\t\"version\": \"./build-docs && git add docs\"\n\t}\n}\n```\n\n### Release script\n\nYou can also add `np` to a custom script in `package.json`. This can be useful if you want all maintainers of a package to release the same way (Not forgetting to push Git tags, for example). However, you can't use `publish` as name of your script because it's an [npm defined lifecycle hook](https://docs.npmjs.com/misc/scripts).\n\n```json\n{\n\t\"name\": \"my-awesome-package\",\n\t\"scripts\": {\n\t\t\"release\": \"np\"\n\t},\n\t\"devDependencies\": {\n\t\t\"np\": \"*\"\n\t}\n}\n```\n\n### Signed Git tag\n\nSet the [`sign-git-tag`](https://docs.npmjs.com/misc/config#sign-git-tag) npm config to have the Git tag signed:\n\n```\n$ npm config set sign-git-tag true\n```\n\nOr set the [`version-sign-git-tag`](https://yarnpkg.com/lang/en/docs/cli/version/#toc-git-tags) Yarn config:\n\n```\n$ yarn config set version-sign-git-tag true\n```\n\n### Private packages\n\n<img src=\"private-packages.png\" width=\"260\" align=\"right\">\n\nYou can use `np` for packages that aren't publicly published to npm (perhaps installed from a private git repo).\n\nSet `\"private\": true` in your `package.json` and the publish step will be skipped. All other steps\nincluding versioning and pushing tags will still be completed.\n\n### Public scoped packages\n\nTo publish [scoped packages](https://docs.npmjs.com/misc/scope#publishing-public-scoped-packages-to-the-public-npm-registry) to the public registry, you need to set the access level to `public`. You can do that by adding the following to your `package.json`:\n\n```json\n\"publishConfig\": {\n\t\"access\": \"public\"\n}\n```\n\n### Publish to a custom registry\n\nSet the [`registry` option](https://docs.npmjs.com/misc/config#registry) in package.json to the URL of your registry:\n\n```json\n\"publishConfig\":{\n\t\"registry\": \"http://my-internal-registry.local\"\n}\n```\n\n### Publish with a CI\n\nIf you use a Continuous Integration server to publish your tagged commits, use the `--no-publish` flag to skip the publishing step of `np`.\n\n### Publish to gh-pages\n\nTo publish to `gh-pages` or any other branch that serves your static assets), install [`branchsite`](https://github.com/enriquecaballero/branchsite), an `np`-like CLI tool aimed to compliment `np`, and create an [npm \"post\" hook](https://docs.npmjs.com/misc/scripts) that runs after `np`.\n\n```\n$ npm install --save-dev branchsite\n```\n\n```json\n\"scripts\":{\n\t\"deploy\": \"np\",\n\t\"postdeploy\": \"bs\"\n}\n```\n\n### Initial version\n\nFor new packages, start the `version` field in package.json at `0.0.0` and let `np` bump it to `1.0.0` or `0.1.0` when publishing.\n\n### Prerequisite step runs forever on macOS\n\nIf you're using macOS Sierra 10.12.2 or later, your SSH key passphrase is no longer stored into the keychain by default. This may cause the `prerequisite` step to run forever because it prompts for your passphrase in the background. To fix this, add the following lines to your `~/.ssh/config` and run a simple Git command like `git fetch`.\n\n```\nHost *\n AddKeysToAgent yes\n UseKeychain yes\n```\n\nIf you're running into other issues when using SSH, please consult [GitHub's support article](https://help.github.com/articles/connecting-to-github-with-ssh/).\n\n\n## Created by\n\n- [Sindre Sorhus](https://github.com/sindresorhus)\n- [Sam Verschueren](https://github.com/SamVerschueren)\n\n\n## License\n\nMIT\n","_attachments":{},"license":"MIT"}