ts-node-restarter
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

ts-node-restarter

A cli tool for restarting your node.js server when files change

Install

yarn add ts-node-restarter

or

npm install ts-node-restarter

CLI

You can use ts-node-restarter by cli, such as

 yarn ts-node-restarter index.js

or

 npm run ts-node-restarter index.js

Script

Or you can use ts-node-restarter by script, such as

  "scripts": {
    "restarter": "ts-node-restarter index.js"
  }

and run

yarn restarter

Settings

add a restarter.json in your project root directory, and add watching files path, such as

{
  "watch": ["index.js"]
}

Package Sidebar

Install

npm i ts-node-restarter

Weekly Downloads

3

Version

1.0.4

License

ISC

Unpacked Size

10.5 kB

Total Files

5

Last publish

Collaborators

  • chd1994