Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/PabloSzx/tsc-node-build

SUPERSEDED BY BOB-ESBUILD
https://github.com/PabloSzx/tsc-node-build

Last synced: 5 days ago
JSON representation

SUPERSEDED BY BOB-ESBUILD

Awesome Lists containing this project

README

        

# 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](https://github.com/gilamran/tsc-watch)

## Install

```bash
pnpm add tsc-node-build
```

```bash
yarn add tsc-node-build
```

```bash
npm install tsc-node-build
```

## Usage

In your `package.json` you can specify:

```json
{
"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:

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