An intro to TSConfig for JavaScript Developers
tsconfig.json configures how the TypeScript compiler processes a project, and most new projects can leave its defaults alone. The key compilerOptions are target, module, outDir, strict, esModuleInterop, lib, sourceMap, jsx and sourceRoot, alongside include/exclude globs. Related features covered are declaration maps, tsc --watch, incremental builds and comment directives like @ts-ignore. Community base configs per runtime are a suggested starting point, and Deno runs .ts files with no config at all.
Related posts
- Node just added TypeScript support. What does that mean for Deno?
Deno easyNoviceNode 22.6 added TypeScript execution via type stripping (stable in 23.6), which replaces annotations with whitespace but does no type checking, does not handle JSX/TSX, and still relies on tsc and a manually managed tsconfig.json. Deno instead ships an integrated toolchain: SWC strips types, a bundled TypeScript compiler powers `deno check` and the LSP, and fmt, lint, doc and compile all understand TypeScript with zero-config defaults. Deno also supports TSX/JSX, TypeScript in the REPL and Jupyter, and publishing raw TypeScript to JSR without transpilation or separate .d.ts files.
- Deno 1.45: Workspace and Monorepo Support
Deno mediumAdeptDeno 1.45 adds workspace support for monorepos, configured via a "workspace" array in deno.json. Global config applies to members with per-member overrides, and Deno and npm workspaces can be mixed. The release also revamps Node-API and many node:http/fs/crypto compat details, adds a --frozen lockfile flag for CI (replacing --lock-write), opt-in npm lifecycle scripts via --allow-scripts, npm-like deno install behind DENO_FUTURE=1, and deno init --lib. It deprecates deno vendor in favor of the vendor option, discovers __tests__ directories, adds Blob.bytes(), bakes .env values into deno compile binaries, and gives the language server per-deno.json scopes. It ships V8 12.7 and TypeScript 5.5.2.
- Deno 1.22 Release Notes
Deno mediumAdeptDeno 1.22 changes the default type checking mode from Full to Local across most subcommands, skipping type errors in dependencies to match tsc, with a proposed move to no type checking in `deno run` and `deno cache` in 1.23. The unstable `Deno.emit()`, `Deno.formatDiagnostics()` and `Deno.applySourceMap()` APIs are removed in favor of the userland `deno_emit` module, and workers now get the `Deno` namespace by default, subject to permissions. Other additions include a `--no-config` flag, `navigator.userAgent`, more DNS record types in `Deno.resolveDns()`, `Response.json()`, LSP linting on by default, AbortSignal support in `Deno.spawn()`, test runner output improvements, and `performance.timeOrigin`.
- Roll your own JavaScript runtime, pt. 2
Deno mediumAdeptA custom JavaScript runtime built on deno_core gains three capabilities: a fetch op backed by the reqwest crate and registered in the runjs extension, a CLI that takes the script path as its first argument, and TypeScript/TSX support. TypeScript support comes from a custom TsModuleLoader that implements deno_core's ModuleLoader trait. It picks a MediaType from the file extension and uses deno_ast to parse and transpile TS, TSX and JSX into JavaScript before handing the module to JsRuntime. The whole runtime stays around 154 lines of Rust.
- Introducing your new JavaScript package manager: Deno
Deno mediumAdeptDeno 2 adds `deno add`, `deno remove`/`uninstall`, and `deno install` subcommands that manage npm and JSR dependencies in either `deno.json` import maps or an existing `package.json`, so they work inside Node projects too. Installs use a global cache with hard links (Linux) or clonefile (macOS), like pnpm, to save disk space and speed up installs, and `--entrypoint` can pre-cache dependencies for Docker builds. Postinstall scripts are blocked by default and must be allowed per package with `--allow-scripts`. `deno outdated` and `deno update` are planned for the next release.