tsc-node-build
TypeScript icon, indicating that this package has built-in type declarations

3.1.3 • Public • Published

tsc-node-build

Build TypeScript Node.js libraries with ESM support using tsc.

Features

  • Building CommonJS & ESM concurrently, taking advantage of multi-core
  • Watching & execute feature with a modified version of tsc-watch

Install

pnpm add tsc-node-build
yarn add tsc-node-build
npm install tsc-node-build

Usage

In your package.json you can specify:

{
  "scripts": {
    "build": "tsc-node-build",
    "dev": "tsc-node-watch --onSuccess \"node dist/cjs/index.js\""
  }
}

And it assumes you have configured your package.json as it follows:

{
  "exports": {
    "./*": {
      "import": "./dist/esm/*.js",
      "require": "./dist/cjs/*.js"
    }
  },
  "typesVersions": {
    "*": {
      "*": [
        "dist/types/*"
      ]
    }
  },
}

Readme

Keywords

none

Package Sidebar

Install

npm i tsc-node-build

Weekly Downloads

1

Version

3.1.3

License

MIT

Unpacked Size

20.1 kB

Total Files

12

Last publish

Collaborators

  • pablosz