Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/PabloSzx/tsc-node-build
- Owner: PabloSzx
- Archived: true
- Created: 2021-04-19T02:20:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-30T04:05:52.000Z (over 3 years ago)
- Last Synced: 2024-04-23T21:59:53.988Z (6 months ago)
- Language: JavaScript
- Homepage: https://github.com/PabloSzx/bob-esbuild
- Size: 58.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/*"
]
}
},
}
```