将文件从另一个项目导入git

时间:2019-06-26 18:26:03

标签: git typescript

我在两个项目中使用一个类,在tsconfig.ts中的项目B中,我在“路径”中声明了它,但是当上传到git时,此文件没有上传,我是否应该配置其他内容?

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "composite": false,
    "module": "es2015",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "importHelpers": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],

    "paths": {
      "@models/*": [
        "../staff-admin/src/app/main/models/*"
      ]
    },

    "lib": [
      "es2018",
      "dom"
    ]

  }
}

0 个答案:

没有答案