Skip to content

Commit

Permalink
Fixing TS project references
Browse files Browse the repository at this point in the history
  • Loading branch information
WonderPanda committed Jan 27, 2019
1 parent a87adda commit 421f8a9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/caching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs-plus/caching": "^0.0.7-alpha.0",
"@nestjs-plus/caching": "^0.0.8-alpha.0",
"@nestjs/common": "^5.4.0",
"@nestjs/core": "^5.4.0",
"node-cache": "^4.2.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/caching/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
esutils "^2.0.2"
js-tokens "^4.0.0"

"@nestjs-plus/caching@^0.0.7-alpha.0":
version "0.0.7-alpha.0"
resolved "https://registry.yarnpkg.com/@nestjs-plus/caching/-/caching-0.0.7-alpha.0.tgz#97bb210eafc84ec45b61e89688f2d780fc1b65f1"
integrity sha512-uY/MaAhd0h8TfYrIQ1IPszGpTyDH2nsr6bsblA178oifRGDDpI3CPLBl9j9vt6HtO3OXczGHHmeY7NPpwV8i1g==
"@nestjs-plus/caching@^0.0.8-alpha.0":
version "0.0.8-alpha.0"
resolved "https://registry.yarnpkg.com/@nestjs-plus/caching/-/caching-0.0.8-alpha.0.tgz#d05b82cf9390a9b2c6bad151fff3205f59b25c8c"
integrity sha512-FC1zDEDYeNiZCj2mlKH/F+8KCBUGclNY5CN8SUd51lFO08xypcfxDnhBrPpBj6ucbFEKxLb422lz5G+8GVBqIw==
dependencies:
"@nestjs-plus/common" "^0.0.1-alpha.0"
"@nestjs/common" "^5.6.2"
Expand Down
3 changes: 2 additions & 1 deletion packages/caching/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"compilerOptions": {
"outDir": "./lib"
},
"include": ["./src"]
"include": ["./src"],
"references": [{ "path": "../common" }]
}
3 changes: 2 additions & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib"
"outDir": "./lib",
"composite": true
},
"include": ["./src"]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"target": "es6",
"sourceMap": true,
"lib": ["es6"],
"baseUrl": "./",
"baseUrl": "./packages",
"paths": {
"@nestjs-plus/*": ["packages/*/src"]
"@nestjs-plus/*": ["./*/src"]
}
},
"exclude": ["node_modules", "**/*.spec.ts"]
Expand Down

0 comments on commit 421f8a9

Please sign in to comment.