@themagician/tsconfig-package-node-esm

1.0.5 • Public • Published

tsconfig-base

the magician tsconfig-package-node-esm banner

repo, npm

A base tsconfig configuration for a node package project for an esm build, that you can override.

Usage:

Install the package:

npm install @themagician/tsconfig-package-node-esm -D
yarn add @themagician/tsconfig-package-node-esm -D
pnpm add @themagician/tsconfig-package-node-esm -D

Then extend it in your tsconfig.json

{
  "extends": "@themagician/tsconfig-package-node-esm",
  "compilerOptions": {
    "noEmit": true,
    "strict": true
  }
}

tsconfig-package-node-esm configuration

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@themagician/tsconfig-base",
  "compilerOptions": {
    "module": "NodeNext",
    "outDir": "dist/esm"
  }
}

Other packages

@themagician/tsconfig repo

https://github.com/TheMagicianDev/tsconfig

You can use this whole repo. As a template or boilerplate to make your own scope based packages, through a monorepo repository for your tsconfig base configurations. As it make a good setup. Using turborepo and changsets and pnpm workspaces. For easy monorepo management and versioning and publishing. As well eslint config to lint json files, and lefthook to run that before committing. And guard the commit. prettier config as well. And Beside high accessibility and flexibility, You may like to do that, to share with your friends, team, or community. As well have them to contribute in a flexible way.

Here some articles we wrote and resources that help u with the notions above:

... to be added later ...

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.54latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.54
1.0.41
1.0.30
1.0.20
1.0.10

Package Sidebar

Install

npm i @themagician/tsconfig-package-node-esm

Weekly Downloads

5

Version

1.0.5

License

MIT

Unpacked Size

947 kB

Total Files

7

Last publish

Collaborators

  • mohamed.lamine.allal