Node start: How to run 2 commands?

Asked

Viewed 65 times

0

When I try to execute the node start where I have only tsc it works. Correctly compiles the Typescript files.

When I try to run the node start where I have only nodemon ./dist/app it works. Runs my app correctly.

The problem is when I try to run the node start with the command tsc; nodemon ./dist/app. Generates the error below:

> tsc ; nodemon ./dist/app

error TS6231: Could not resolve the path ';' with the extensions: '.ts', '.tsx', '.d.ts'.

error TS6231: Could not resolve the path 'dist/app' with the extensions: '.ts', '.tsx', '.d.ts'.

error TS6231: Could not resolve the path 'nodemon' with the extensions: '.ts', '.tsx', '.d.ts'. 


Found 3 errors.
  • By your code I didn’t get it right. You’ve already built it and it’s in the folder dist and still want to rotate the tsc again?

  • i want every time I start, it runs Tsc and nodemon

  • is running in windows? try: "start": "Tsc && nodemon . /dist/app"

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.