{"_id":"@ampproject/npw","_rev":"2-98c66f4fe8ee7d1ab8d296945a63d8ad","name":"@ampproject/npw","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ampproject/npw","version":"1.0.0","description":"A workspace-aware npm wrapper to aid with developing in monorepos","bin":{"npw":"bin/npw.js"},"scripts":{"lint":"prettier --write src bin","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ampproject/npw.git"},"keywords":["npm","workspace"],"author":{"name":"The AMP HTML Authors"},"license":"Apache-2.0","bugs":{"url":"https://github.com/ampproject/npw/issues"},"engines":{"node":">= 10.0.0"},"homepage":"https://github.com/ampproject/npw#readme","devDependencies":{"prettier":"2.4.0"},"gitHead":"a1720b7922c9a7e59dd58d25a4cdefb3ad76ed1a","_id":"@ampproject/npw@1.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-y081SBDHOq/uJKK1qSyPmoUBbrLPS+HkHfnvWiPtSqM/B4bfekxzOtMyWtLzJ8pFv2S8Qkr1d3Lchb6DSpiK2g==","shasum":"99fbfea1393ffc6ec95b0d0790b9dca57b4fca67","tarball":"https://registry.npmjs.org/@ampproject/npw/-/npw-1.0.0.tgz","fileCount":7,"unpackedSize":16204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhO8GXCRA9TVsSAnZWagAA3WEP/i/2+IoTbbZNn/UIsnYj\nYxL4DR5l6nfbXu6UpH6QGIYNF/QyeKi+SXY6JtYKzMyu2PNVzt1V21l/sZFx\ntqnETstnkV/Y/RY7TwGhz81FJBa+q6pBDm68eHPrKHZScgHy9N4foLpwlbdj\n1ZbVxYk0JiSxMbvb1u3WGS5HJPT7I8RHl5Yrr9dkrGq52obj8Zy+Ce+iqkFO\nyXec4yfRP41vbPXFlI6rPALNNQXPMH3n/mP6IgpxdIE8oWnWhj3oYHQyuf2z\nHK2RqTve3yr97PimwfSj/8unsUioXt4n38xwUwfrBCcDolQ+4fYrgH+8ac8y\njcucdqCifYmIzKXR3DmvDHNnDB0xJhyNPY6IoRZ94BdAJqWF47iQH4V1JTAr\nAxr3vKZ3sfjiu7kb1Sc6D1J8ughrgHrYbKUhn5OgyYfEWhgjs05m/QcJg5fg\nd2HeOXJJnG7lqiGHLvZoGUOiedCw0umrSFB9dA53hoacw42n35vF2q4q+jxm\nr9efW4pL1Jyd9R1Hqk3leL7AleJwKZNRqCHP6hcawn3lP871PultpO1bHXwb\nf8RvVxb+Sne+Q0KZIBNc+wI/l7aMutZC5sq2ZygVlq1aiDpl/00lNZHI4NJO\ng78wvM8IsUgJ6byMDocut0LEGT6RGGw5a5Ch1LgTklDlc+DCGBKpNmaQ+2tc\nzeXp\r\n=jlml\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXZdUBNCwfUjQ2wnremO/qnZD01AEdmmubeXorbfgTIAIhAPl2UvK1tkAzPp5a0vpq5d7Y1KWG4y5QL1tQf0C2MPO7"}]},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npw_1.0.0_1631306135271_0.9703159064298343"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ampproject/npw","version":"1.0.1","description":"A workspace-aware npm wrapper to aid with developing in monorepos","bin":{"npw":"bin/npw.js"},"scripts":{"lint":"prettier --write src bin","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ampproject/npw.git"},"keywords":["npm","workspace"],"author":{"name":"The AMP HTML Authors"},"license":"Apache-2.0","bugs":{"url":"https://github.com/ampproject/npw/issues"},"engines":{"node":">= 10.0.0"},"homepage":"https://github.com/ampproject/npw#readme","devDependencies":{"prettier":"2.4.0"},"gitHead":"73e584a44f762d08b1c3066dead8ab4ba50c6117","_id":"@ampproject/npw@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-o95j8xz57LsezPnRdsY5Yl117IdQEXzvV7sFPuniuaR68SsHLAAUK8ivDlCYOvB7qqa60JxsPzDO11ObQrOdyA==","shasum":"c6ffa327b7bd2731c1b556a347c7452475ad5412","tarball":"https://registry.npmjs.org/@ampproject/npw/-/npw-1.0.1.tgz","fileCount":7,"unpackedSize":17347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1SpNCRA9TVsSAnZWagAAARkP/R92Ob0DsQwCEYGiUda7\nuuu0xE/9+zLC4DVfPIupTUtIubfao/8zvQcDXPDoGgJHfG4wIDvpH4bbgF3j\nWFR2kzDjs9ufOBayCfQF0fWQiQ+c7pDxoai/FdGdwZXVEqnSuV1LDH4yzciB\nTZF1MH9tElXf3qkfDkABlnJ2+jJovMfEJACYQb730w96MbLmWy+0O7BHT93i\ndwSq3doflwI8mo3UlAkexJ/oA69kIWF2T+xiEalyH2NACPMrEsEHnm2HzTCx\nfTHk4BKWH3yh1Hw6XTrRB7el1m61SbfScxPg8r65tDw6KBqE6aqIy9SqEcj0\nEGiwOUT3OnddoexV1M6xsvkSB7+g/JD89P5icsJxmzxjDmgIKpQZfLhBt2Ps\nlEmmrA5iJUDwpekTp/KjJM8O53Sd3Ec+5LkTym8JZcP7k8QlBTJrpWNfacQd\nPL4WNyoA+FVi+DyxPWgZSiz+XXEm4lOMQUAc0Zzy3InfXSxUyVzCXK0ZPAUF\nn9lwuZt6tyQa6QpRd4gHcMpk5JFIwfN5fEBYzeto8slCSoXsTKq0deXR/91s\ntS2J74To87P+ge4KRtITMoj83e1VpqfI2aqCAr6x8pW1CkABxZirWaKOH0/1\nFGbBerf3WKU5DlSnk9KQb3ZeTfvL6ngvp3Whn6Zuyr6E7+hwo9oZIsRpjUSz\n8+8M\r\n=vU/L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFHkL+Wm82Re85d5WhigdIRuQ/GMXLQ21AcqC+DhhUcAIhAOBMMdsh+lv8JXhtxCNGETXMZb4mhOX3ikdCRx3PQoFo"}]},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npw_1.0.1_1641359949763_0.08368026427784847"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-10T20:35:35.224Z","1.0.0":"2021-09-10T20:35:35.417Z","modified":"2022-04-04T13:52:47.912Z","1.0.1":"2022-01-05T05:19:09.921Z"},"maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"description":"A workspace-aware npm wrapper to aid with developing in monorepos","homepage":"https://github.com/ampproject/npw#readme","keywords":["npm","workspace"],"repository":{"type":"git","url":"git+https://github.com/ampproject/npw.git"},"author":{"name":"The AMP HTML Authors"},"bugs":{"url":"https://github.com/ampproject/npw/issues"},"license":"Apache-2.0","readme":"# @ampproject/npw\n\n> A workspace-aware npm wrapper to aid with developing in monorepos\n\n`npw` aids when developing a sub-package inside a [npm workspace][workspaces]\nmonorepo. It allows you to cd into your sub-package and perform\nworkspace-aware operations without you having to cd back into the\nmonorepo root to perform the operation.\n\nImagine you have the following workspace setup:\n\n```\nmonorepo/\n  packages/\n    project-1/\n      package.json\n    project-2/\n      package.json   // { \"dependencies\": { \"project-1\": * } }\n  package.json       // { \"workspaces\": [ \"./packages/*\" ] }\n```\n\nIf you `cd monorepo` and run `npm install`, everything will work fine.\nBut if you `cd packages/project-2` and try running `npm install` again,\nyou'll get a failure that `project-1` cannot be resolved. This is\nbecause npm isn't aware you're working in a workspace's sub-package, so\nit doesn't know that `project-1` is in the parent directory.\n\n`npw` fixes this. When you run `npw install`, it will figure out where\nthe monorepo root is and perform the correct `npm install -w packages/project-2`\nso that npm is aware of the workspace.\n\n## Installation\n\n```bash\n$ npm install -g @ampproject/npw\n```\n\n## Usage\n\n`npw` is a simple wrapper around npm, and can be invoked with any\ncommand that npm supports.\n\n\n```bash\n$ npw install --save-dev prettier\n\n$ npw start\n```\n\n[workspaces]: https://docs.npmjs.com/cli/v7/using-npm/workspaces\n","readmeFilename":"README.md"}