{"id":15482488,"url":"https://github.com/guidsdo/multipletypescriptcompilers","last_synced_at":"2025-04-22T16:22:12.377Z","repository":{"id":42201675,"uuid":"101562032","full_name":"guidsdo/multipleTypescriptCompilers","owner":"guidsdo","description":"Monorepo solution for multiple typescript projects (tslint support!). Run multiple typescript compilers concurrently at the same time. Usage: `mtsc [directories...]` Example: `mtsc client server middleware`","archived":false,"fork":false,"pushed_at":"2024-09-12T08:40:13.000Z","size":745,"stargazers_count":18,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T11:42:28.933Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guidsdo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-27T15:34:05.000Z","updated_at":"2024-09-12T08:40:17.000Z","dependencies_parsed_at":"2023-02-05T02:15:37.067Z","dependency_job_id":null,"html_url":"https://github.com/guidsdo/multipleTypescriptCompilers","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidsdo%2FmultipleTypescriptCompilers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidsdo%2FmultipleTypescriptCompilers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidsdo%2FmultipleTypescriptCompilers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidsdo%2FmultipleTypescriptCompilers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guidsdo","download_url":"https://codeload.github.com/guidsdo/multipleTypescriptCompilers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250275717,"owners_count":21403726,"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-10-02T05:09:16.748Z","updated_at":"2025-04-22T16:22:12.342Z","avatar_url":"https://github.com/guidsdo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiple Typescript Compilers \u003cimg src=\"https://github.com/guidsdo/multipleTypescriptCompilers/blob/master/images/mtsc_logo_small.png?raw=true\" align=\"right\" width=\"200\"/\u003e\n\n_Monorepo solution for multiple typescript projects. Watch multiple typescript compilers concurrently at the same time, without losing output!_\n\n[![Build Status](https://travis-ci.org/guidsdo/multipleTypescriptCompilers.svg?branch=master)](https://travis-ci.org/guidsdo/multipleTypescriptCompilers)\n[![Coverage Status](https://coveralls.io/repos/github/guidsdo/multipleTypescriptCompilers/badge.svg?branch=master)](https://coveralls.io/github/guidsdo/multipleTypescriptCompilers?branch=master)\n[![Known Vulnerabilities](https://snyk.io/test/github/guidsdo/multipleTypescriptCompilers/badge.svg)](https://snyk.io/test/github/guidsdo/multipleTypescriptCompilers)\n[![dependencies Status](https://david-dm.org/guidsdo/multipleTypescriptCompilers/status.svg)](https://david-dm.org/guidsdo/multipleTypescriptCompilers)\n\n[![npm version](https://img.shields.io/npm/v/mtsc.svg?colorB=cb3837)](https://www.npmjs.com/package/mtsc)\n[![download](https://img.shields.io/npm/dw/mtsc.svg?colorB=cb3837)](https://www.npmjs.com/package/mtsc)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\nThe vision and goal for Mtsc is, and always has been, the following:\n- Be able to lint and ts-compile multiple projects, concurrently whilst keeping all the results (not possible with just `concurrently`)\n- Facilitate proper vscode integration which means:\n    - See lint and tsc result without having to open a specific file\n    - Require the least amount of necessary configurability\n- Support mono-repo's natively\n- Support the following workflow:\n    1. Clone a project\n    1. `yarn`\n    1. `code .`\n    1. `cmd+shift+b`\n    1. See what's happening in your whole monorepo and be able to work at the same time (watchmode). :mindblown:\n\n## Usage\n\n**NOTE: Supported versions: Typescript 2.8+. Use Mtsc 1.\\* for older versions**\n\n### Cli:\n\n`mtsc [directories/tsconfigs...]`\n\n### Examples:\n\n`./node_modules/.bin/mtsc client scripts/ide.tsconfig.json special/location`\n\n`mtsc client scripts/ide.tsconfig.json special/location -w`\n\n`mtsc -c client/tsconfig.json scripts/ide.tsconfig.json -w`\n\n`mtsc -c node_modules/.bin/tsc client/tsconfig.json scripts/ide.tsconfig.json -w`\n\n## Why?\n\nI began this project because vscode can't handle the output of multiple typescript projects. If you have multiple projects watched at the same time, only the output of the last compilation will be considered and the other errors of other projects are hidden. This has to do, with the problem matcher vscode uses, explained here: https://code.visualstudio.com/docs/editor/tasks-v1#_background-watching-tasks\n\n### How it was fixed:\n\nThis always prints the compilation output of the other projects when a new compilation is done. It also makes sure that the interpreter knows there is still a compilation going on by printing a compilation start message when there is still one running.\n\n### Known issues\n\n- Please let me know\n\n## Cli\n\n```\n  Usage: mtsc [options] [projects/tsconfigs...]\n\n  Options:\n    -d, --debug                       Add way too much logging\n    -c, --config [path_to_config]     Path to mtsc config\n    -w, --watch                       Watch the given projects (default false)\n    -t, --tsc [path_to_tsc]           Path to compiler for all projects (will search in exec dir if not given)\n    --noEmit                          Do not emit outputs\n    -h, --help                        output usage information\n```\n\n## mtsc.json spec\n\n[Config spec can be seen here](https://github.com/guidsdo/multipleTypescriptCompilers/blob/master/src/config/configSpec.ts)\n\n\n## Vscode integration\nSet the typescript compiler in vscode by clicking on the compiler version. This is only possible when you open a typescript file. This setting sometimes goes to the builtin vscode compiler, so if you don't see errors; check this first.  \n\u003cimg src=\"https://github.com/guidsdo/multipleTypescriptCompilers/blob/master/images/ts_switcher.png?raw=true\"/\u003e  \n  \n## Vscode tasks json examples\n\n### Example using cli only\n\n```json\n{\n    \"version\": \"2.0.0\",\n    \"tasks\": [\n        {\n            \"type\": \"shell\",\n            \"label\": \"Mtsc\",\n            \"command\": \"./node_modules/.bin/mtsc -w projectA scripts/projectB projectC/tsconfig.json\",\n            \"isBackground\": true,\n            \"problemMatcher\": \"$tsc-watch\",\n            \"group\": {\n                \"kind\": \"build\",\n                \"isDefault\": true\n            },\n            \"runOptions\": {\n                \"runOn\": \"folderOpen\"\n            }\n        }\n    ]\n}\n```\n\n### Example using CLI + config\n\n`tasks.json`\n\n```json\n{\n    \"version\": \"2.0.0\",\n    \"tasks\": [\n        {\n            \"type\": \"shell\",\n            \"label\": \"Mtsc\",\n            \"command\": \"./node_modules/.bin/mtsc\",\n            \"isBackground\": true,\n            \"problemMatcher\": \"$tsc-watch\",\n            \"group\": {\n                \"kind\": \"build\",\n                \"isDefault\": true\n            },\n            \"runOptions\": {\n                \"runOn\": \"folderOpen\"\n            }\n        }\n    ]\n}\n```\n\n`mtsc.json` (will be autodetected)\n\n```json\n{\n    \"debug\": false,\n    \"watch\": true,\n    \"projects\": [\"projectA\", \"scripts/projectB\", \"projectC/tsconfig.json\"]\n}\n```\n\n## Roadmap\n\n-   Any ideas? Let me know :)\n\n---\n\n\u003ccenter\u003e\n\u003cimg src=\"https://www.mendix.com/ui/images/mendix-logo.png\" align=\"center\" width=\"200\"/\u003e\n\n**Mtsc is proudly used for development at [Mendix](https://www.mendix.com)**\n\n\u003c/center\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguidsdo%2Fmultipletypescriptcompilers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguidsdo%2Fmultipletypescriptcompilers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguidsdo%2Fmultipletypescriptcompilers/lists"}