Base tsconfig for Node projects

Usage no npm install needed!

<script type="module">
  import wildpeaksTsconfigNode from 'https://cdn.skypack.dev/@wildpeaks/tsconfig-node';


Typescript Config: Node

Github Release

Typescript configuration for projects targeting Node, such as a CLI script.

It outputs to /lib, targeting ES2017 CommonJS.

It is configured for ES2017 and accepts:

  • CommonJS modules
  • ES modules
  • JSON modules

Note: TSC only copies JSON files to /lib if they're imported using import.


After adding it in your devDependencies, reference the package in your tsconfig.json:

  "extends": "@wildpeaks/tsconfig-node"

You can also override its settings, for example:

  "extends": "@wildpeaks/tsconfig-node",
  "compilerOptions": {
    "noImplicitAny": false