{"id":21031528,"url":"https://github.com/slaveofcode/monorepo-npm-modules-example","last_synced_at":"2025-03-13T19:42:04.773Z","repository":{"id":92795295,"uuid":"463836679","full_name":"slaveofcode/monorepo-npm-modules-example","owner":"slaveofcode","description":"Single repository with multiple NPM modules","archived":false,"fork":false,"pushed_at":"2022-02-26T19:11:03.000Z","size":673,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-20T15:23:36.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slaveofcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-26T11:42:58.000Z","updated_at":"2022-03-14T18:41:18.000Z","dependencies_parsed_at":"2023-03-13T17:25:11.996Z","dependency_job_id":null,"html_url":"https://github.com/slaveofcode/monorepo-npm-modules-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fmonorepo-npm-modules-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fmonorepo-npm-modules-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fmonorepo-npm-modules-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fmonorepo-npm-modules-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaveofcode","download_url":"https://codeload.github.com/slaveofcode/monorepo-npm-modules-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243472090,"owners_count":20296263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T12:29:07.835Z","updated_at":"2025-03-13T19:42:04.753Z","avatar_url":"https://github.com/slaveofcode.png","language":"TypeScript","readme":"# Example Monorepo for NPM Modules \nThis is an example of multiple NPM modules published on one repository that stands as a monorepo project.\n\n## Projects\nThese projects are just an example of implementation where every project has its own module (`@slaveofcode` is the GitHub account/organization name)\n\n- Auth (npm module as: @slaveofcode/test-auth)\n- Cryptography (npm module as: @slaveofcode/test-cryptography)\n- Common Helpers (npm module as: @slaveofcode/test-common-helpers)\n- Notification (npm module as: @slaveofcode/test-notification)\n- Service Adapter (npm module as: @slaveofcode/test-service-adapter)\n\n**I manually changed the module name at package.json \u0026 package-lock.json (use `test-` prefix) because those modules are created just for testing only**\n\n## Auto-release per Project\nThe GitHub action will automatically release a new npm module version when the version of `package.json` is changed (patch-minor-major), triggered by pushing the commit at `main` branch\n\n## Notes for Project\n- remove label `private: true` on `package.json`\n- add custom `.npmrc` to handle local \u0026 cloud registry authentication (see the example at `auth/.npmrc`)\n- Don't forget to set `main` and `files` to only direct the generated `.js` files at `package.json`\n- Add extra config at `package.json` (You might adjust the account \u0026 repository name)\n\n```js\n...\n  \"repository\": {\n      \"url\": \"https://github.com/slaveofcode/monorepo-npm-modules-example\"\n  },\n  \"publishConfig\": {\n      \"registry\": \"https://npm.pkg.github.com/\"\n  }\n...\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Fmonorepo-npm-modules-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaveofcode%2Fmonorepo-npm-modules-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Fmonorepo-npm-modules-example/lists"}