PabloSzx / tsc-node-build

SUPERSEDED BY BOB-ESBUILD

Home Page:https://github.com/PabloSzx/bob-esbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsc-node-build

SUPERSEDED BY https://github.com/PabloSzx/bob-esbuild

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/*"
      ]
    }
  },
}

About

SUPERSEDED BY BOB-ESBUILD

https://github.com/PabloSzx/bob-esbuild


Languages

Language:JavaScript 100.0%