{
  "_id": "in-publish",
  "maintainers": [
    {
      "name": "iarna",
      "email": "me@re-becca.org"
    }
  ],
  "dist-tags": {
    "latest": "2.0.1"
  },
  "author": {
    "name": "Rebecca Turner",
    "email": "me@re-becca.org"
  },
  "_rev": "24-76ae5681eccae98ffafd361d37891c1c",
  "description": "Detect if we were run as a result of `npm publish`",
  "readme": "in-publish\n==========\n\n> For background, see [npm#10074](https://github.com/npm/npm/issues/10074).\n\nDetect if we were run as a result of `npm publish`. This is intended to allow you to\neasily have prepublish lifecycle scripts that don't run when you run `npm install`.\n\n```\n$ npm install --save-dev in-publish\nin-publish@1.0.0 node_modules/in-publish\n```\n\nThen edit your package.json to have:\n\n```json\n  \"scripts\": {\n    \"prepublish\": \"in-publish && thing-I-dont-want-on-dev-install || not-in-publish\"\n  }\n```\n\nNow when you run:\n\n```\n$ npm install\n```\nThen `thing-I-dont-want-on-dev-install` won't be run, but...\n\n```\n$ npm publish\n```\nAnd `thing-I-dont-want-on-dev-install` will be run.\n\nIt's worth noting that the `prepublish` lifecycle is _ALSO_ called when you build a tarball, so:\n\n```\n$ npm pack\n```\n\nWill call your `prepublish` lifecycle, but with the example above,\n`thing-I-dont-want-on-dev-install` won't be run.\n\nIf you want this, you can use another helper included here:\n\n```json\n  \"scripts\": {\n    \"prepublish\": \"not-in-install && thing-I-dont-want-on-dev-install || in-install\"\n  }\n```\n\nThe above will run your `thing-I-dont-want-on-dev-install` on `publish` and\non `pack` but not on `install`.\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/iarna/in-publish.git"
  },
  "users": {
    "joeybaker": true,
    "julien-f": true,
    "brentonhouse": true,
    "abhisekp": true,
    "backnight": true,
    "iarna": true,
    "thebearingedge": true,
    "mysticatea": true,
    "stevenvachon": true,
    "ta2edchimp": true,
    "wynpm": true
  },
  "bugs": {
    "url": "https://github.com/iarna/in-publish/issues"
  },
  "license": "ISC",
  "versions": {
    "1.0.0": {
      "name": "in-publish",
      "version": "1.0.0",
      "description": "Detect if we were run as a result of `npm publish`",
      "main": "index.js",
      "bin": {
        "in-publish": "cli.js"
      },
      "repository": {
        "type": "git",
        "url": "https://github.com/iarna/in-publish"
      },
      "author": {
        "name": "Rebecca Turner",
        "email": "me@re-becca.org"
      },
      "license": "ISC",
      "bugs": {
        "url": "https://github.com/iarna/in-publish/issues"
      },
      "homepage": "https://github.com/iarna/in-publish",
      "gitHead": "309ce88b21eb99e279cfae5a274dafd5ed772a4f",
      "_id": "in-publish@1.0.0",
      "scripts": {},
      "_shasum": "447566f1258a4006ffc62ab39573b59f60892595",
      "_from": ".",
      "_npmVersion": "2.1.18",
      "_nodeVersion": "0.10.33",
      "_npmUser": {
        "name": "iarna",
        "email": "me@re-becca.org"
      },
      "maintainers": [
        {
          "name": "iarna",
          "email": "me@re-becca.org"
        }
      ],
      "dist": {
        "shasum": "447566f1258a4006ffc62ab39573b59f60892595",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/in-publish/-/in-publish-1.0.0.tgz",
        "integrity": "sha512-+ux3b4+10Li481r4GnRMMfGsDGuUV3Wr2fLIIPS6PtBXoqlKZrQJXT/h/4H7vcummqT7lUy1P/HPth1pkRiijQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD3QCpeHdJvD6MfgjOa+vvOXJL5lr3PNDYd523IXh/H9gIgUGu4/19MAdLgZQvQXQMxo1vYHi9FAjrwIAv+VxJ1qN8="
          }
        ]
      },
      "directories": {}
    },
    "1.1.0": {
      "name": "in-publish",
      "version": "1.1.0",
      "description": "Detect if we were run as a result of `npm publish`",
      "main": "index.js",
      "bin": {
        "in-publish": "cli.js",
        "in-install": "not-cli.js"
      },
      "repository": {
        "type": "git",
        "url": "https://github.com/iarna/in-publish"
      },
      "author": {
        "name": "Rebecca Turner",
        "email": "me@re-becca.org"
      },
      "license": "ISC",
      "bugs": {
        "url": "https://github.com/iarna/in-publish/issues"
      },
      "homepage": "https://github.com/iarna/in-publish",
      "gitHead": "676a1fc3f628184e6efe24803c146097a602e0a5",
      "_id": "in-publish@1.1.0",
      "scripts": {},
      "_shasum": "7ee6c0a125fdad5665c9ac09173e07897f19ffe7",
      "_from": ".",
      "_npmVersion": "2.1.18",
      "_nodeVersion": "0.10.33",
      "_npmUser": {
        "name": "iarna",
        "email": "me@re-becca.org"
      },
      "maintainers": [
        {
          "name": "iarna",
          "email": "me@re-becca.org"
        }
      ],
      "dist": {
        "shasum": "7ee6c0a125fdad5665c9ac09173e07897f19ffe7",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/in-publish/-/in-publish-1.1.0.tgz",
        "integrity": "sha512-BTmaJoAhzjMD91btlgBiEBtpWncsItRDdGPjmrVa9LCv4teDjJEglrLubM1/lpYSu3pmJmtc6Ekgvi+sgljeNw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCLC5yRJ3XbX6AZ5YLD9LirsT/T8O9X6GsEkAPHaRg3+wIgat0Zz2imWOBaStGWwpDjB+9NVTzTNvUxOOr7Y4EOPTA="
          }
        ]
      },
      "directories": {}
    },
    "1.1.1": {
      "name": "in-publish",
      "version": "1.1.1",
      "description": "Detect if we were run as a result of `npm publish`",
      "main": "index.js",
      "bin": {
        "in-publish": "cli.js",
        "in-install": "not-cli.js"
      },
      "repository": {
        "type": "git",
        "url": "https://github.com/iarna/in-publish"
      },
      "author": {
        "name": "Rebecca Turner",
        "email": "me@re-becca.org"
      },
      "license": "ISC",
      "bugs": {
        "url": "https://github.com/iarna/in-publish/issues"
      },
      "homepage": "https://github.com/iarna/in-publish",
      "gitHead": "ad40c39528ffd29c8b11ded394af2b040307c60f",
      "_id": "in-publish@1.1.1",
      "scripts": {},
      "_shasum": "45ef58736dedb975804ee86da27e8ad3731386f8",
      "_from": ".",
      "_npmVersion": "2.1.18",
      "_nodeVersion": "0.10.33",
      "_npmUser": {
        "name": "iarna",
        "email": "me@re-becca.org"
      },
      "maintainers": [
        {
          "name": "iarna",
          "email": "me@re-becca.org"
        }
      ],
      "dist": {
        "shasum": "45ef58736dedb975804ee86da27e8ad3731386f8",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/in-publish/-/in-publish-1.1.1.tgz",
        "integrity": "sha512-qbBL7na7WV1cdCAbIofdceBNB8vIQz1tsAQSXUsy0thnyxQL1W+aUJ6cfQ4pB/ynLVdYvm9CdMwNaIeqhxcoPw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIGuOT1BYlfGw80x4drFMiNwoVeCz3FXrEWe+B8CtDwxkAiBgT+jzgX0yqRZLF5YJJ6SbNXXznCs23dSigaDBYrnrgw=="
          }
        ]
      },
      "directories": {}
    },
    "2.0.0": {
      "name": "in-publish",
      "version": "2.0.0",
      "description": "Detect if we were run as a result of `npm publish`",
      "main": "index.js",
      "bin": {
        "in-publish": "in-publish.js",
        "in-install": "in-install.js",
        "not-in-publish": "not-in-publish.js",
        "not-in-install": "not-in-install.js"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/iarna/in-publish.git"
      },
      "author": {
        "name": "Rebecca Turner",
        "email": "me@re-becca.org"
      },
      "license": "ISC",
      "bugs": {
        "url": "https://github.com/iarna/in-publish/issues"
      },
      "homepage": "https://github.com/iarna/in-publish",
      "gitHead": "7602f2f81f8be988cae554d706bd4a3f1d563f1a",
      "_id": "in-publish@2.0.0",
      "scripts": {},
      "_shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
      "_from": ".",
      "_npmVersion": "2.11.3",
      "_nodeVersion": "2.3.3",
      "_npmUser": {
        "name": "iarna",
        "email": "me@re-becca.org"
      },
      "dist": {
        "shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/in-publish/-/in-publish-2.0.0.tgz",
        "integrity": "sha512-S/Qt3SBbP15k2Yll5xaguu2c5E1LZnhwERvHt/FqUx+Ae/lYHVf2ZE96hUgcXJkcCbXoxkkSRohsG/YXXMNOCQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIFIdIpOSQSmkZIZPqsiCaIv9AltTVbxQ8cghnnhgJNOUAiATyphtnPta5kvMqhK+Jd09Z6nBG0CUTn8kedeGZgJMaA=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "iarna",
          "email": "me@re-becca.org"
        }
      ],
      "directories": {}
    },
    "2.0.1": {
      "name": "in-publish",
      "version": "2.0.1",
      "description": "Detect if we were run as a result of `npm publish`",
      "main": "index.js",
      "bin": {
        "in-publish": "in-publish.js",
        "in-install": "in-install.js",
        "not-in-publish": "not-in-publish.js",
        "not-in-install": "not-in-install.js"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/iarna/in-publish.git"
      },
      "author": {
        "name": "Rebecca Turner",
        "email": "me@re-becca.org"
      },
      "license": "ISC",
      "bugs": {
        "url": "https://github.com/iarna/in-publish/issues"
      },
      "homepage": "https://github.com/iarna/in-publish",
      "gitHead": "4f6a0558a81324c3fc09cc5f4df869812b7a7889",
      "_id": "in-publish@2.0.1",
      "_nodeVersion": "12.7.0",
      "_npmVersion": "6.10.2-next.1",
      "_npmUser": {
        "name": "iarna",
        "email": "me@re-becca.org"
      },
      "dist": {
        "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==",
        "shasum": "948b1a535c8030561cea522f73f78f4be357e00c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/in-publish/-/in-publish-2.0.1.tgz",
        "fileCount": 9,
        "unpackedSize": 4008,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeb9huCRA9TVsSAnZWagAA5+QP/1OqI7uEPcdl3o4ahw6e\ncfTV78GszHCRFPzmV4nKyC6c7MUDXlVWxBp2CXztshT8PdiYp423/uBHjd1C\nleTDsxou20qf0qcYnsNcIZnnFxM+LMdDerxNOcxuC45TfB2Cvx/XmhvuZj/+\n56cDY+XvsmNDhE30wVQjbBMYC7RvECFmKemWMxIWlLOoOZyOd0dTTjpoBHSS\npNV6V4uJYoqXY1xxPKs7kXIeK37Cn5btCcnnrHYuPnus8D3BoSDimQQVjnVw\n2mkq9KGH5iaq9oJQ+dD2n1Gyn3cwRrUtzCbAGw4SL8o77naznjhOMmnOQk/Y\n2IBwqWO/12UbdegCzPZDiZR0AbWoB0MjLNYDTNzX5fvhpW+YwKi4fnYJA8gH\nBORxvsAHB9H9YfD4k3nv1hKFqG2Kzc8VWU8pGOCK7zOA36kV6s5ot3+NPnXa\npbjgfStTrCeqyL2/FJSqRIXPvgtwajziVjeTLLhYC1G0mEvLJyfoCS93hmc2\npgvEMaJ7wRUp03HPLMnXiYldHJ9TpSSs6Xq98U5PewkcOrcOsGwzTHVmk20A\nzQAqNV+Xr+8yoFWRHsKy+1qLzCXSoo9U7eZJSDgIUOGRLnXQDKv6Pa/BO0BE\nou0zmvq6tGIPpzeHAO7n4gbehSmR9pNFMQsWjL5GVE669zks+KpEUeCC3Jh7\n5oYb\r\n=9igW\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCGVvbB7hrkn8GO3Nmo21dtytK+Wk5OBZQtXPbYRdD8PgIhAJNXYDT7WGkTq3rP+R6h3oqHE8TfXQd+QXCwBw29f4Oh"
          }
        ]
      },
      "maintainers": [
        {
          "name": "iarna",
          "email": "me@re-becca.org"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/in-publish_2.0.1_1584388205654_0.9803408184104747"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "in-publish",
  "time": {
    "modified": "2026-05-20T15:56:29.919Z",
    "created": "2015-01-13T03:26:01.320Z",
    "1.0.0": "2015-01-13T03:26:01.320Z",
    "1.1.0": "2015-01-13T04:25:48.596Z",
    "1.1.1": "2015-01-13T05:06:26.928Z",
    "2.0.0": "2015-07-07T19:01:29.155Z",
    "2.0.1": "2020-03-16T19:50:05.783Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/iarna/in-publish"
}