{"name":"subpkg","version":"4.0.2","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":"7d66c277cdf06c83b37ea73c5e98d00f6a5b8beb","bugs":{"url":"https://github.com/scheibo/subpkg/issues"},"homepage":"https://github.com/scheibo/subpkg#readme","_id":"subpkg@4.0.2","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-PSGN68QAYDnOt3q6wJZeu6szZw4MEjdU6fMpa5fjo0e5Ek5e6vVOj8skEKg9BWWNOz/yd/4x5pQdtOkpUo/Z5Q==","shasum":"e781b084a18fa7891924d6501a0f1d475d766992","tarball":"http://registry-npm.ywwl.com/subpkg/download/subpkg-4.0.2.tgz","fileCount":5,"unpackedSize":8232,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpOIzCRA9TVsSAnZWagAAtiMP/3VwYgiwRcozU6tyE6Rp\n8QSwRqGLf5hpz3k1+QoUjQGVdyTEVB17yOJJ6rtZxteDomZRqQ4HwNMnzz05\nmqzlIbgzZwJfWLNkCltfp6kPA2Hbk7LS45jss8LOLasIJa303fLa9czZBweq\nzpz8BXGtxjq0UGLD8OhTODqoAYMeVJ9Fvlmbnj/1E0AZ1P1ec3jprHpTnYid\n/qWXD5Rhib2kcKeN8Lxcx1EgoJoyaxhogWP1Snw8Y29RNbSsdVOm5IocBC18\n0JYeuo+BTyd1bH2wXX+q6S48j7VZ6B2r25nCse0wcE+jB6xKmArS0SlsuYFh\nqVENJQaratnD0/XwnpYB+UTqYiU1rLOnjwhE8JYytvfvFNlO/jhFsURyU5TS\nmrvhnWPneKQfqcdGrkmxazwqWKIcPQomTGMOtX6csSYWz96OA9Lmvu9+meFn\nfDya3RLxTEPRIPHNHhSjD5HbZ3+p3DeYv+LDET3jfcvUxBIrETXr1j5AuEkx\n9uzm/dz/6zK2WEoLaGlym0mjtier9642hMlOhIc1C+IW8yRkPiBh99tuiaUz\n4c7uixYl+bMzWJaIPmeEyx0/TgxMh9MVjArBYRYlDENOrpEjJ3mBzypCc2Mo\n5ShmPOOjhY/oPnTddsuHe6MhcfTC5Az3YyHkOyNKD1JaEcxk7PSULI9WNDJ+\npKCm\r\n=fQ9j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZBTbby06e53uTacb1siq8qjMsfCToZxzpMvJGdsEn4AiB0Ny0IAdfQR7fq87M4zCnUpuafaTGVtMUMHh+f2P8Djw=="}],"size":3351,"noattachment":false,"key":"/subpkg/-/subpkg-4.0.2.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.0.2_1604641331006_0.1504778645813083"},"_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":1604641331184,"_cnpm_publish_time":1604641331184,"dist-tags":{"latest":"4.2.0"}}