在我的项目中,所有的脚本都是要编译的/bin文件夹,tsc命令执行时没有错误,导致没有创建任何内容,无法解释原因.
我的Tconfig.json
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"lib": ["es6", "es7", "dom", "esnext"],
"module": "commonjs",
"moduleResolution": "node",
"noEmit": true,
"noImplicitAny": false,
"outDir": "bin",
"removeComments": true,
"sourceMap": true,
"target": "es2017",
"rootDirs": ["src/", "config/"],
"typeRoots": ["./node_modules/@types", "./typings"]
},
"include": ["src/**/*", "./typings"],
"exclude": ["node_modules", "bin", "**/__mocks__*", "**/*.spec.**", "test", "assets"]
}
在我的包裹里.json这是我要编译的脚本:
"scripts": {
"build-ts": "tsc",
"watch-ts": "tsc -w",
},
我的项目 struct :
rootdir
|
|-----src
| |----server.ts
| |----app.ts
|-----test
|-----node_modules
|-----typings
|-----config
|-----tsconfig.json
|-----package.json
知道我做错了什么吗?