{"id":51839947,"url":"https://github.com/dnd-mapp/tsconfig","last_synced_at":"2026-07-23T03:03:00.515Z","repository":{"id":371789339,"uuid":"1300297353","full_name":"dnd-mapp/tsconfig","owner":"dnd-mapp","description":"Shared, strict `tsconfig.json` presets for Node.js, NestJS, and Angular projects.","archived":false,"fork":false,"pushed_at":"2026-07-16T23:57:42.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-17T01:13:21.246Z","etag":null,"topics":["angular","config","nestjs","node","strict","tsconfig","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@dnd-mapp/tsconfig","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnd-mapp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-07-14T09:47:42.000Z","updated_at":"2026-07-16T23:57:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dnd-mapp/tsconfig","commit_stats":null,"previous_names":["dnd-mapp/tsconfig"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dnd-mapp/tsconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnd-mapp%2Ftsconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnd-mapp%2Ftsconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnd-mapp%2Ftsconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnd-mapp%2Ftsconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnd-mapp","download_url":"https://codeload.github.com/dnd-mapp/tsconfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnd-mapp%2Ftsconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35785916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-23T02:00:06.683Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["angular","config","nestjs","node","strict","tsconfig","typescript"],"created_at":"2026-07-23T03:02:59.711Z","updated_at":"2026-07-23T03:03:00.508Z","avatar_url":"https://github.com/dnd-mapp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dnd-mapp/tsconfig\n\n[![Push to main](https://github.com/dnd-mapp/tsconfig/actions/workflows/push-main.yml/badge.svg)](https://github.com/dnd-mapp/tsconfig/actions/workflows/push-main.yml)\n[![License](https://img.shields.io/github/license/dnd-mapp/tsconfig)](LICENSE)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)\n\nShared, strict `tsconfig.json` presets for Node.js, NestJS, and Angular projects.\n\n## Features\n\n- **`base.json`**: the strict baseline every other preset builds on, including `strict`, `exactOptionalPropertyTypes`, `noUncheckedIndexedAccess`, `verbatimModuleSyntax`, `erasableSyntaxOnly`, `isolatedModules`, and consistent lint-like checks (`noUnusedLocals`, `noImplicitReturns`, `noFallthroughCasesInSwitch`, `forceConsistentCasingInFileNames`, LF newlines).\n- **`node.json`** _(extends `base.json`)_: targets Node.js, using `nodenext` module/resolution, `ES2023` target with `ES2024` lib, and `@types/node` as the only ambient types.\n- **`nest.json`** _(extends `node.json`)_: tailored for NestJS, using `commonjs` module (matching Nest's decorator-metadata/DI model), `experimentalDecorators` + `emitDecoratorMetadata` enabled, `erasableSyntaxOnly` disabled to allow constructor parameter properties, `strictPropertyInitialization` disabled for DTO/entity ergonomics, plus `sourceMap` and `incremental` builds.\n- **`angular.json`** _(extends `base.json`)_: tailored for Angular, using a browser target (`ES2024` + `DOM` lib), `bundler` module resolution to match the Angular CLI's esbuild-based builder, `experimentalDecorators` enabled, and `erasableSyntaxOnly` disabled to allow constructor parameter properties.\n\n## Requirements\n\n- [TypeScript](https://www.npmjs.com/package/typescript) `\u003e=5.9`\n- [@types/node](https://www.npmjs.com/package/@types/node) `\u003e=24` (when using `node.json`, `nest.json`, or `angular.json`)\n\n## Installation\n\nThis package is private to the `dnd-mapp` org and published to [GitHub Package Registry](https://npm.pkg.github.com), not the public npm registry. Installing it requires a GitHub token with `read:packages` scope and a `.npmrc` entry mapping the `@dnd-mapp` scope to GitHub Package Registry.\n\nIn the consuming project's `.npmrc` (safe to commit, contains no credential):\n\n```ini\n@dnd-mapp:registry=https://npm.pkg.github.com\n```\n\nThe auth token itself must **not** go in that project-level `.npmrc`. pnpm refuses to expand env vars in auth settings from a committed `.npmrc`, specifically to stop a malicious commit from exfiltrating secrets. Instead, set it in your user-level `~/.npmrc`:\n\n```ini\n//npm.pkg.github.com/:_authToken=\u003cyour token\u003e\n```\n\nor via:\n\n```shell\npnpm config set \"//npm.pkg.github.com/:_authToken\" \"\u003cyour token\u003e\"\n```\n\nUse a GitHub token with `read:packages` scope, for example, a [personal access token](https://github.com/settings/tokens). If installing from another GitHub Actions workflow within the `dnd-mapp` org, `GITHUB_TOKEN` works instead (with `packages: read` permission granted), set the same way via `pnpm config set` in that workflow, not by committing it.\n\nThen install as usual:\n\n```shell\npnpm add -D @dnd-mapp/tsconfig typescript @types/node\n```\n\n`typescript` and `@types/node` are peer dependencies, see [Requirements](#requirements) for supported versions.\n\n## Usage\n\nExtend the preset that matches your project from your `tsconfig.json`.\n\n**Plain TypeScript project:**\n\n```json\n{\n    \"extends\": \"@dnd-mapp/tsconfig/configs/base.json\"\n}\n```\n\n**Node.js project:**\n\n```json\n{\n    \"extends\": \"@dnd-mapp/tsconfig/configs/node.json\",\n    \"compilerOptions\": {\n        \"outDir\": \"./dist\",\n        \"rootDir\": \"./src\"\n    },\n    \"include\": [\"src\"]\n}\n```\n\n**NestJS project:**\n\n```json\n{\n    \"extends\": \"@dnd-mapp/tsconfig/configs/nest.json\"\n}\n```\n\n**Angular project:**\n\n```json\n{\n    \"extends\": \"@dnd-mapp/tsconfig/configs/angular.json\"\n}\n```\n\nEach preset only sets `compilerOptions`, add your own `include`/`exclude`, `outDir`/`rootDir`, and any `angularCompilerOptions` on top as needed for your project's layout.\n\n## Contributing\n\nSee the org-wide [CONTRIBUTING.md](https://github.com/dnd-mapp/.github/blob/main/CONTRIBUTING.md) for how to propose changes, and [DEVELOPMENT.md](DEVELOPMENT.md) for how to work in this repository day-to-day. This project follows the [Code of Conduct](https://github.com/dnd-mapp/.github/blob/main/CODE_OF_CONDUCT.md).\n\n## Security\n\nSee [SECURITY.md](https://github.com/dnd-mapp/.github/blob/main/SECURITY.md) for how to report a vulnerability.\n\n## Support\n\nSee [SUPPORT.md](https://github.com/dnd-mapp/.github/blob/main/SUPPORT.md) for how to get help.\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md) for release history.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnd-mapp%2Ftsconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnd-mapp%2Ftsconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnd-mapp%2Ftsconfig/lists"}