{"name":"subpkg","version":"4.1.0","description":"Minimal utility for managing projects with sub-packages","author":{"name":"Kirk Scheibelhut"},"license":"MIT","bin":{"subpkg":"index.js"},"repository":{"type":"git","url":"git+https://github.com/scheibo/subpkg.git"},"keywords":["minimal","package","sub-package"],"gitHead":"fe1833e38a59cf839f4d08bfc8da3bf6ee3ec512","bugs":{"url":"https://github.com/scheibo/subpkg/issues"},"homepage":"https://github.com/scheibo/subpkg#readme","_id":"subpkg@4.1.0","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-rUZussLImOmo7ugj4b5TQrPZrEMO93j3yIsFUpkwZS938E6/TVj5mt4mqiBMkxI94ikCN8ZBs+5nAPxU5AwLJg==","shasum":"01390a8ed1ebd7b77518d74c842e176d36f91916","tarball":"http://registry-npm.ywwl.com/subpkg/download/subpkg-4.1.0.tgz","fileCount":5,"unpackedSize":9868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyXrxCRA9TVsSAnZWagAAZZIP/iQzi19XQwyuGpwch9jg\nD5JW48FByl3yWfQ6nfwyP4XJuiP6Oam5M4n9I4gBnvS1NsMgki+0bnbVoAUb\naT4XRnD1larP1reEvfcYicLIcDMXgbe2ddyxToy91TWlf0nevVRaSwLAFRSU\nx3dJZA3zSq++YSvQtXEw4FvH/oZxIaW9ZIERhvoLLK+oZFXgacmejJ4dgEGW\neZn/BQA07WeqaxFJqeNpg5bLqK0KnQs+/vp+OCXyHZsxH+tPzw1vkoSk69pk\npR8A1Z8+ZWwDZIIoDU4zGyxtfU1a+i3uyymvuTw0xkuP1RAmOLnsVcF/AIH6\nAyiGMQn4NYWi113EVuhEBtxU16kbw6/25QW73DWZhl4DqkGvAz5LHzt99+Zf\nKMIE2VZfC8Dt/SjJFTBVKLhlEwh2gYE/5HgtLcHUsOwH4f4nWHBpDunCMOp7\nwaDsaU5n3W3jdJUJ24FupWjZvHIUYQhPVpXQxnkvsdoo0FhicsB+94w5/F5r\n7ybAv43PC4DQXwxO0JJZkPK1RcjgPanzr5RqjXFZWobMIaXsFeWuDViOLzu4\nd1Pcd0gmzWnr6ZpjJjdo2HPkTvNB9UfeczzrfLgKepMhTCMjgMppgR4y2pOi\n4JsbX8ltZEWRRoOPWsYdYUFGrBoWTdfRSaRZ5ghpxNUXy01B1RelhWuQGVps\ngT48\r\n=7lMX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU8yhqCixhoT9xnoN+kSvb2f0wo3X252yMyejNKziYZgIhAKB5JmvC6MNRLbIVyLtEFAdfin81Wr0XW5BJk9Vk//Hj"}],"size":3788,"noattachment":false,"key":"/subpkg/-/subpkg-4.1.0.tgz"},"_npmUser":{"name":"kjscheibo","email":"kjs@scheibo.com"},"directories":{},"maintainers":[{"name":"kjscheibo","email":"kjs@scheibo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/subpkg_4.1.0_1607039729295_0.313309839586263"},"_hasShrinkwrap":false,"readme":"# `subpkg`\n\n[![npm version](https://img.shields.io/npm/v/subpkg.svg)](https://www.npmjs.com/package/subpkg)\n\n`subpkg` is a roughly API-compatible implementation of\n[`subpackage`](https://github.com/dupski/subpackage) which has zero dependencies and trades support\nfor environment variables for several additional features like linking and version bumping. `subpkg`\nallows you to run scripts defined in `package.json` across multiple sub-projects and serves as a\nminimal alternative to [Lerna](https://github.com/lerna/lerna) or `pnpm`'s support for\n['workspaces'](https://pnpm.js.org/en/workspaces).\n\n## Usage\n\n```sh\n$ npm install --save-dev subpkg\n```\n\n```json\n{\n    \"name\": \"my-awesome-project\",\n    \"version\": \"2.5.1\",\n    \"subPackages\": [\n        \"packages/sub-package-1\",\n        \"packages/sub-package-2\"\n    ],\n    \"scripts\": {\n      \"postinstall\": \"subpkg install && ...\",\n      \"build\": \"subpkg run build && ...\"\n    }\n}\n```\n\n### Dynamic modules\n\n```json\n{\n    \"name\": \"my-awesome-project\",\n    \"version\": \"2.5.1\",\n    \"subPackages\": {\n        \"dirA\" : \"packagesA.json\",\n        \"dirB\" : \"packagesB.json\"\n    },\n    \"scripts\": {\n      \"postinstall\": \"subpkg install && ...\",\n      \"build\": \"subpkg run build && ...\"\n    }\n}\n```\n\nWhere `packagesA.json` is a JSON file specifying active/inactive packages in the directory `dirA`\nand both `dirA` and `packagesA.json` are paths relative to root directory:\n\n```json\n{\n    \"sub-package-1\": true,\n    \"sub-package-2\": true,\n    \"sub-package-3\": false,\n}\n```\n\nModules set to `false` will not be taken into account.\n\n#### Laravel Modules\n\nThis feature allows for seamless integration with the\n[nWidart/laravel-modules](https://github.com/nWidart/laravel-modules) project:\n\n```json\n{\n    \"name\": \"my-awesome-project\",\n    \"version\": \"2.5.1\",\n    \"subPackages\": {\n        \"modules\" : \"modules_statuses.json\"\n    }\n}\n```\n\n## License\n\n`subpkg` is distributed under the terms of the [MIT License](LICENSE).\n","publish_time":1607039729434,"_cnpm_publish_time":1607039729434,"dist-tags":{"latest":"4.2.0"}}