package.json 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "in-publish@^2.0.0",
  6. "scope": null,
  7. "escapedName": "in-publish",
  8. "name": "in-publish",
  9. "rawSpec": "^2.0.0",
  10. "spec": ">=2.0.0 <3.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/node-sass"
  14. ]
  15. ],
  16. "_from": "in-publish@>=2.0.0 <3.0.0",
  17. "_id": "in-publish@2.0.0",
  18. "_inCache": true,
  19. "_location": "/in-publish",
  20. "_nodeVersion": "2.3.3",
  21. "_npmUser": {
  22. "name": "iarna",
  23. "email": "me@re-becca.org"
  24. },
  25. "_npmVersion": "2.11.3",
  26. "_phantomChildren": {},
  27. "_requested": {
  28. "raw": "in-publish@^2.0.0",
  29. "scope": null,
  30. "escapedName": "in-publish",
  31. "name": "in-publish",
  32. "rawSpec": "^2.0.0",
  33. "spec": ">=2.0.0 <3.0.0",
  34. "type": "range"
  35. },
  36. "_requiredBy": [
  37. "/node-sass"
  38. ],
  39. "_resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz",
  40. "_shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
  41. "_shrinkwrap": null,
  42. "_spec": "in-publish@^2.0.0",
  43. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/node-sass",
  44. "author": {
  45. "name": "Rebecca Turner",
  46. "email": "me@re-becca.org"
  47. },
  48. "bin": {
  49. "in-publish": "in-publish.js",
  50. "in-install": "in-install.js",
  51. "not-in-publish": "not-in-publish.js",
  52. "not-in-install": "not-in-install.js"
  53. },
  54. "bugs": {
  55. "url": "https://github.com/iarna/in-publish/issues"
  56. },
  57. "dependencies": {},
  58. "description": "Detect if we were run as a result of `npm publish`",
  59. "devDependencies": {},
  60. "directories": {},
  61. "dist": {
  62. "shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
  63. "tarball": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz"
  64. },
  65. "gitHead": "7602f2f81f8be988cae554d706bd4a3f1d563f1a",
  66. "homepage": "https://github.com/iarna/in-publish",
  67. "license": "ISC",
  68. "main": "index.js",
  69. "maintainers": [
  70. {
  71. "name": "iarna",
  72. "email": "me@re-becca.org"
  73. }
  74. ],
  75. "name": "in-publish",
  76. "optionalDependencies": {},
  77. "readme": "in-publish\n==========\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 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 examplea 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",
  78. "readmeFilename": "README.md",
  79. "repository": {
  80. "type": "git",
  81. "url": "git+https://github.com/iarna/in-publish.git"
  82. },
  83. "scripts": {},
  84. "version": "2.0.0"
  85. }