Skip to content

beerush-id/esdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@beerush/esdev

A simple typescript helper to run you package development that will output ESM and CJS modules.

This package is simply run a tsc command with the tsconfig.json and tsconfig-cjs.json configs, and then rename any .js file under dist/cjs folder to .cjs extension, and rename any imports/require endings with .js to .cjs.

Usage

npx @beerush/esdev

Options

  • --watch - Watch for changes and recompile.
  • --clean - Clean the output directory before compiling.

Requirements

  • tsconfig.json file as the ESM config.
  • tsconfig-cjs.json file as the CJS config.

Install as Dev Script

npm i -D @beerush/esdev
{
  "scripts": {
    "dev": "esdev"
  }
}
npm run dev

About

ES Module & CommonJS Helper

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors