Is there a way to use npm scripts to run tsc -watch && nodemon –watch?

I think what you want is something like this (my current setup): “scripts”: { “compile”: “tsc && node app.js”, “dev”: “./node_modules/nodemon/bin/nodemon.js -e ts –exec \”npm run compile\”” } I created two scripts “compile” and “dev”. To start developing you simply run npm run dev which starts nodemon and makes it watch .ts files (using the … Read more

ts-node ignores d.ts files while tsc successfully compiles the project

I was having a similar problem, but I could not add –files, because I run ts-node by registering the module through mocha (i.e. mocha -r ts-node/register …). I could solve it by adding a files and a ts-node section to tsconfig.json like this: // tsconfig.json { “ts-node”: { “files”: true }, “files”: [ “src/index.ts”, “src/global.d.ts” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)