如何在types中创build自己的节点模块时处理依赖关系

我正在尝试在打字稿中创build和发布节点模块。 我的库有一些我在package.json中添加的依赖关系。

{ "name": "my-unite-framework", "version": "1.0.2", "description": "Can log \"hello world\" and \"goodbye world\" to the console!", "main": "dist/index.js", "types": "dist/index.d.ts", "dependencies": { "@angular/animations": "4.1.3", "@angular/common": "4.0.0", "@angular/compiler": "4.0.0", "@angular/compiler-cli": "4.0.0", "@angular/core": "4.0.0", "@angular/forms": "4.0.0", "@angular/http": "4.0.0", "@angular/platform-browser": "^4.3.6", "@ionic-native/core": "^4.2.0", "@ionic-native/network": "^3.4.4", "@ionic/storage": "^2.0.1", "ionic-angular": "3.0.1", "ionic-cache": "^2.0.4", "ng2-translate": "^5.0.0", "rxjs": "5.1.1" } } 

但是,当我在新项目中发布并安装它时,node_modules依赖项将安装在my-unite-framework文件夹本身中,而不是安装在项目文件夹中。

那么我怎么才能在这个项目的node_module文件夹中安装这些依赖呢?