带接口的TypeScript模块
我正在尝试使用外部存储库作为前端和后端接口的存储库。 当我在没有构建JS的情况下将其添加到项目中时(使用命令带接口的TypeScript模块,typescript,npm,Typescript,Npm,我正在尝试使用外部存储库作为前端和后端接口的存储库。 当我在没有构建JS的情况下将其添加到项目中时(使用命令tsc),我的IDE没有看到它。 我的package.json是 { "name": "my-interfaces", "version": "1.0.7", "description": "", "main": "src/i
tsc
),我的IDE没有看到它。
我的package.json是
{
"name": "my-interfaces",
"version": "1.0.7",
"description": "",
"main": "src/index.ts",
"types": "src/index.ts",
"files": [
"/src"
],
"repository": {
"type": "git",
"url": "GIT_URL"
},
"author": "Me",
"license": "ISC",
"homepage": "URL_HERE"
}
我的tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
]
}
我不使用npm存储库(我不想使用它)。
我直接从git连接模块
“mou接口”:“git+ssh://GIT_URL/my-interfaces.git#master“,