{"name":"subpkg","version":"4.0.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":"c3029c185754484d7ed3ea113a5b245cb01ad5cb","bugs":{"url":"https://github.com/scheibo/subpkg/issues"},"homepage":"https://github.com/scheibo/subpkg#readme","_id":"subpkg@4.0.0","_nodeVersion":"13.13.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-gStFLGf0t3KlY/qfN+rnIjSIngaWVod2J8OglW92J9/dWCPCdZAOst9v29NKaavJkDVW22lxgrmxPgvN7ChXmA==","shasum":"0f8812a348ea74d32c3bcfa13c002770cef80dd9","tarball":"http://registry-npm.ywwl.com/subpkg/download/subpkg-4.0.0.tgz","fileCount":4,"unpackedSize":7688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbVwpCRA9TVsSAnZWagAASr4QAJu11HmZExorpZFjbXFO\nfIM91DZGuSHw689O7Dw76nEVDo2LN6+qWpbSFZRYjw1YNhwwbkTawvHmiGvF\nh2wVgTnyKtGZdmmcgoTtr/D2jFNDhv6FlWlIoDLK+8XbWlXnDHrUxT+vkSqK\n0K1bsKn6T1xybPvcEEZ4WG06u5Z3+BlafBkq2pmStGuaycXpxLF4S32ZgLCf\nH5XAqsm45FYzQTp/lD4EQAUtw5B9jkfTZ6aw50weIf/Vqq78CzREVHM63zw2\nuUzvsx+Gao7LNajgNIjdNkBeDGlt4yG5djHxe7YIU2f1Qn6mBwQ+EotLnGUQ\nlvgCRXNm9bijzkwSIBfF0mTGv5fzKEdUlLC6XpPHM9nF9JgijmDYjnQDtCWO\ng+TbtwZi4+2nWt32SlD6B75xmIxKD0B5v2QAUykaXgOxElbvOI6hz/Fhi+HT\n6Wyr3oMJfU3ZOf0Ka9p+3GjrptYIFzi8ySYatd88nFYfBH4qrZ08kFaBg/dx\naRzHhVqecRl6Kf7h1+ZpnO+N+o+XTpz3vzBM+0C+Nnf9veQSDVDReT6Lt6E7\n02rUT/B49SWZFuCEv3nugWjQ9Jvcn4gVXMafUqP37jnarkd7hq0MwgN3Ok4i\nGw9iXRRitkpnU9+1AxdhOCI/7oMxSrsO1Dpu0NRbRAIgjdRyuCf8nTOGPsbf\nXW7A\r\n=2ReF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9EyBgbffzL578HjXSCB6PHVHsWkwIdfxnwqdxNtxMTAiB2IOKABv6o2qkJ5Cpcbia+012ahJQrWD/PIhdJG2ekRQ=="}],"size":3103,"noattachment":false,"key":"/subpkg/-/subpkg-4.0.0.tgz"},"maintainers":[{"name":"kjscheibo","email":"kjs@scheibo.com"}],"_npmUser":{"name":"kjscheibo","email":"kjs@scheibo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/subpkg_4.0.0_1601002537373_0.4349486322277383"},"_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":1601002537496,"_cnpm_publish_time":1601002537496,"dist-tags":{"latest":"4.2.0"}}