{"id":49422690,"url":"https://github.com/knightedcodemonkey/duel-references","last_synced_at":"2026-04-29T07:06:38.953Z","repository":{"id":331279862,"uuid":"1125986266","full_name":"knightedcodemonkey/duel-references","owner":"knightedcodemonkey","description":"Exercise TypeScript project references with duel.","archived":false,"fork":false,"pushed_at":"2025-12-31T22:55:41.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-05T11:16:11.600Z","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/knightedcodemonkey.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-31T19:56:09.000Z","updated_at":"2025-12-31T22:55:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/knightedcodemonkey/duel-references","commit_stats":null,"previous_names":["knightedcodemonkey/duel-references"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/knightedcodemonkey/duel-references","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightedcodemonkey%2Fduel-references","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightedcodemonkey%2Fduel-references/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightedcodemonkey%2Fduel-references/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightedcodemonkey%2Fduel-references/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knightedcodemonkey","download_url":"https://codeload.github.com/knightedcodemonkey/duel-references/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightedcodemonkey%2Fduel-references/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32414473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-29T07:06:38.128Z","updated_at":"2026-04-29T07:06:38.938Z","avatar_url":"https://github.com/knightedcodemonkey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duel-references\n\nA minimal, real workspace that mirrors the `projectRefs` test fixture from `duel` without symlink overrides. Use this to manually exercise `duel` against project references and hoisted deps.\n\n## Layout\n\n- Root workspace: `package.json` (workspaces `packages/*`, depends on `hoisted`)\n- Packages:\n  - `packages/app` (depends on `project-refs-lib` and `hoisted`)\n  - `packages/lib` (base lib)\n  - `packages/chain-a`, `chain-b`, `chain-c` (reference chain)\n  - `packages/custom-app` (depends on `custom-lib` via explicit build tsconfig)\n  - `packages/custom-lib` (exports types/js)\n  - `packages/hoisted` (dep hoisted to root node_modules)\n\n## Usage\n\n1. Install deps (creates real node_modules with workspace symlinks and installs the local `@knighted/duel` tarball referenced in package.json):\n\n   ```sh\n   npm install\n   ```\n\n2. Build the workspace so packages emit to their local `dist/` (required; sources no longer ship JS/DTS stubs):\n\n   ```sh\n   npm run build --workspaces\n   ```\n\n3. Choose how to run `duel` (the default is the local tgz in package.json):\n   - Use the packed tgz (already wired via `file:../duel/knighted-duel-*.tgz`): nothing extra to do.\n   - Swap to a published build instead:\n     ```sh\n     npm install @knighted/duel\n     ```\n\n4. Run `duel` against the reference packages, e.g.:\n\n   ```sh\n   npm run duel:lib\n   npm run duel:app\n   npm run duel:chain\n   npm run duel:custom\n   ```\n\n5. Execute the built outputs to sanity-check runtime:\n\n   ```sh\n   npm run run:app\n   npm run run:custom\n   ```\n\n6. Outputs land in `dist/` under each package (e.g., `dist/lib`, `dist/app`).\n\n## Notes\n\n- Nothing under `node_modules` is committed; install before running.\n- Type declarations (`index.d.ts`) are intentional parts of the authored fixtures to mimic published packages.\n\n## Future scenarios to exercise\n\n- Alternative package managers and hoisting: try `pnpm`/`yarn` with/without hoist/plug'n'play to validate resolution and temp-copy behavior.\n- Non-hoisted deps: add a workspace that depends on a private package without hoisting to ensure duel handles node_modules layouts that mirror production.\n- CJS entrypoints: run the generated CJS outputs directly (e.g., `node packages/app/dist/cjs/index.cjs`) to cover both halves of the dual build at runtime.\n- Incremental/watch flows: run `tsc -b --watch` plus repeated `duel` invocations to confirm stability with rebuilt tsbuildinfo.\n- Path aliases and complex refs: introduce tsconfig path mappings and multi-level references (including optional refs) to stress resolution.\n- Version skew: test with different TS versions (e.g., a matrix of 5.3–5.7) to confirm compatibility.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightedcodemonkey%2Fduel-references","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknightedcodemonkey%2Fduel-references","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightedcodemonkey%2Fduel-references/lists"}