Seems like I'm having a problem with whats supposed to be very simple, I want to have typescript as a devDependency in my project and not global.
Ive installed it using npm i --save-dev typescript, but i cannot seem to be able to run tsc command to produce my javascript files.
My tsconfig.json:
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
],
"atom": {
"rewriteTsconfig": false
}
}
I've tried following this question but couldn't find any solution there..
I understand simply running tsc in my terminal cannot possibly work as it is not installed globally and is not a known command, but what IS the way?
Any help would be highly appreciated, thanks in advance!
npm run tscapproach that is described in one of the answers in your linked question should work.