0.2.2 • Published 3 years ago

tsc-both v0.2.2

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Produce both .js and .mjs files with tsc

A simple script to build both .js (CommonJS) and .mjs (ES6) modules from the same TypeScript project and into a single directory.

If source maps are present they will be renamed and modified accordingly.

Run npx tsc-both in the directory with tsconfig.json. outDir must be set.

WARNING: outDir will be completely wiped before recompilation.

package.json example

{
    ...
    "scripts": {
        "build": "npx tsc-both",
        "prepare": "npm run build"
    },
    "devDependencies": {
        "tsc-both": "0.1.x"
    }
    ...
}
0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

6 years ago

0.1.0

6 years ago