12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- {
- "_args": [
- [
- {
- "raw": "in-publish@^2.0.0",
- "scope": null,
- "escapedName": "in-publish",
- "name": "in-publish",
- "rawSpec": "^2.0.0",
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/node-sass"
- ]
- ],
- "_from": "in-publish@>=2.0.0 <3.0.0",
- "_id": "in-publish@2.0.0",
- "_inCache": true,
- "_location": "/in-publish",
- "_nodeVersion": "2.3.3",
- "_npmUser": {
- "name": "iarna",
- "email": "me@re-becca.org"
- },
- "_npmVersion": "2.11.3",
- "_phantomChildren": {},
- "_requested": {
- "raw": "in-publish@^2.0.0",
- "scope": null,
- "escapedName": "in-publish",
- "name": "in-publish",
- "rawSpec": "^2.0.0",
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz",
- "_shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
- "_shrinkwrap": null,
- "_spec": "in-publish@^2.0.0",
- "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/node-sass",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org"
- },
- "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"
- },
- "bugs": {
- "url": "https://github.com/iarna/in-publish/issues"
- },
- "dependencies": {},
- "description": "Detect if we were run as a result of `npm publish`",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "e20ff5e3a2afc2690320b6dc552682a9c7fadf51",
- "tarball": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz"
- },
- "gitHead": "7602f2f81f8be988cae554d706bd4a3f1d563f1a",
- "homepage": "https://github.com/iarna/in-publish",
- "license": "ISC",
- "main": "index.js",
- "maintainers": [
- {
- "name": "iarna",
- "email": "me@re-becca.org"
- }
- ],
- "name": "in-publish",
- "optionalDependencies": {},
- "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",
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/in-publish.git"
- },
- "scripts": {},
- "version": "2.0.0"
- }
|