{"id":29007616,"url":"https://github.com/christopherhaws/lab","last_synced_at":"2025-06-25T13:09:35.764Z","repository":{"id":188141521,"uuid":"678169721","full_name":"ChristopherHaws/lab","owner":"ChristopherHaws","description":"Just a place for me to put random stuff","archived":false,"fork":false,"pushed_at":"2024-03-03T03:04:34.000Z","size":663,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T01:52:52.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ChristopherHaws.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},"funding":{"github":"ChristopherHaws"}},"created_at":"2023-08-13T23:02:24.000Z","updated_at":"2023-08-13T23:03:24.000Z","dependencies_parsed_at":"2024-02-11T21:13:29.662Z","dependency_job_id":"65053c24-0029-4c55-8e70-3d5c1f4336df","html_url":"https://github.com/ChristopherHaws/lab","commit_stats":null,"previous_names":["christopherhaws/lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChristopherHaws/lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherHaws%2Flab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherHaws%2Flab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherHaws%2Flab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherHaws%2Flab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristopherHaws","download_url":"https://codeload.github.com/ChristopherHaws/lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopherHaws%2Flab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261879307,"owners_count":23223739,"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":"2025-06-25T13:09:35.049Z","updated_at":"2025-06-25T13:09:35.737Z","avatar_url":"https://github.com/ChristopherHaws.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ChristopherHaws"],"categories":[],"sub_categories":[],"readme":"# Lab\n\nThis repo is a place for me to play around with different tech without needing to create a new git repo everytime.\n\n## Vite Monorepo Samples\n\n### Samples\n\n| Folder                                                       | Description                                                                                                                                                                                               |\n| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [/vite-01-monorepo-multiproj](./vite-01-monorepo-multiproj/) | - tsconfigs per aspect\u003cbr/\u003e- vite/vitest config per aspect\u003cbr/\u003e- packages need to build in lib mode for local dev\u003cbr/\u003e- hmr only works on code in the app subfolder because the libs are prebuilt |\n| [/vite-02-monorepo-monoproj](./vite-02-monorepo-monoproj/)   | - tsconfigs per workspace\u003cbr/\u003e- vite/vitest config per app\u003cbr/\u003e- packages dont need vite installed\u003cbr/\u003e- hmr works on all the local packages                                                              |\n\n### Possible other things to try\n\n-   Something to try is to tell pnpm to hard link the local deps instead of symlinking them:\n\n    ```json\n    // https://pnpm.io/package_json#dependenciesmetainjected\n    \"dependenciesMeta\": {\n      \"@acme/ui\": {\n        \"injected\": true\n      }\n    }\n    ```\n\n-   Try setting `auto-install-peers = true` in `.npmrc`\n\n# Packages vs apps\n\nThis repo contains two types of workspaces:\n\n-   `packages`: meant to be published to npm and installed,\n-   `apps`: meant to be executed.\n\n### Useful Links\n\n-   [Problem with Vite and CommonJS package in monorepo (Vite #5668)](https://github.com/vitejs/vite/issues/5668)\n-   [You might not need TypeScript project references](https://turbo.build/blog/you-might-not-need-typescript-project-references)\n-   [How to set up a TypeScript monorepo and make Go to definition work](https://medium.com/@NiGhTTraX/how-to-set-up-a-typescript-monorepo-with-lerna-c6acda7d4559)\n-   [Making TypeScript monorepos play nice with other tools](https://medium.com/@NiGhTTraX/making-typescript-monorepos-play-nice-with-other-tools-a8d197fdc680)\n-   [Template project for setting up a TypeScript monorepo (internal packages)](https://github.com/NiGhTTraX/ts-monorepo)\n-   [Template project for setting up a TypeScript monorepo (project references)](https://github.com/NiGhTTraX/ts-monorepo/tree/project-references)\n-   [A guide through The Wild Wild West of setting up a mono repo with TypeScript, Lerna and Yarn Workspaces](https://blog.ah.technology/a-guide-through-the-wild-wild-west-of-setting-up-a-mono-repo-with-typescript-lerna-and-yarn-ed6a1e5467a)\n-   [TypeScript Project Configuration Options](https://plainenglish.io/blog/typescript-project-directory-structure-module-resolution-and-related-configuration-options)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristopherhaws%2Flab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristopherhaws%2Flab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristopherhaws%2Flab/lists"}