Está dando erro aqui no npm run compile. Está gerando a pasta js compilada com os arquivos, mas gerá os seguintes erros:
$ npm run compile
> alurabank@1.0.0 compile
> tsc
../../../node_modules/@types/bluebird/index.d.ts(354,97): error TS1005: '>' expected.
../../../node_modules/@types/bluebird/index.d.ts(354,122): error TS1144: '{' or ';' expected.
../../../node_modules/@types/bluebird/index.d.ts(354,131): error TS1005: '=' expected.
../../../node_modules/@types/bluebird/index.d.ts(354,148): error TS1005: '(' expected.
../../../node_modules/@types/bluebird/index.d.ts(354,156): error TS1109: Expression expected.
../../../node_modules/@types/sinon/index.d.ts(1407,36): error TS1005: ';' expected.
../../../node_modules/@types/superagent/index.d.ts(17,1): error TS1084: Invalid 'reference' directive syntax.
npm ERR! code 2
npm ERR! path C:\Users\Kauan\OneDrive\Documentos\GetConnect\typescript\alurabank
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c tsc
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Kauan\AppData\Local\npm-cache\_logs\2021-03-29T16_48_30_429Z-debug.log
alurabank/tsconfig.json
{
"compilerOptions": {
"target": "es6",
"outDir": "app/js"
},
"include": ["app/ts/**/*"]
}
package.json
{
"name": "alurabank",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^2.3.2"
}
}