Skip to content

Commit

Permalink
Enable projectReferences: true
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed May 14, 2021
1 parent a6c53e9 commit a4dde59
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"packages/*"
],
"devDependencies": {
"fork-ts-checker-webpack-plugin": "^6.2.6",
"fork-ts-checker-webpack-plugin": "^6.2.9",
"ts-loader": "^9.1.2",
"typescript": "^4.2.4",
"webpack": "^5.37.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/pkg1/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"composite": true,
"declaration": true
"declaration": true,
"outDir": "dist"
},
"include": ["./*.ts"]
}
3 changes: 2 additions & 1 deletion packages/pkg2/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"composite": true,
"declaration": true
"declaration": true,
"outDir": "dist"
},
"include": ["./*.ts"]
}
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
{
"path": "./packages/pkg2"
}
]
],
"compilerOptions": {
"outDir": "dist"
}
}
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ module.exports = {
loader: 'ts-loader',
exclude: /node_modules/,
options: {
// compilerOptions: { noEmit: true },
transpileOnly: true,
projectReferences: true,
},
},
],
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1759,9 +1759,9 @@ __metadata:
languageName: node
linkType: hard

"fork-ts-checker-webpack-plugin@npm:^6.2.6":
version: 6.2.6
resolution: "fork-ts-checker-webpack-plugin@npm:6.2.6"
"fork-ts-checker-webpack-plugin@npm:^6.2.9":
version: 6.2.9
resolution: "fork-ts-checker-webpack-plugin@npm:6.2.9"
dependencies:
"@babel/code-frame": ^7.8.3
"@types/json-schema": ^7.0.5
Expand All @@ -1776,7 +1776,7 @@ __metadata:
schema-utils: 2.7.0
semver: ^7.3.2
tapable: ^1.0.0
checksum: a832aa4f126d79af75d7acc980c70b8285b5dd0aab2afa495e4500050e4616eeaf951d5d1653ad29675a22f72c19a3569cd28f3f97c4f6e0d1548f36efc4ea89
checksum: 2332cf09d142055f7070313a3731d17327f6879be328e6ffc49989464e0e5d82e1fbdd17b6906d431093cf9c416e2094731a0276621add37c2df65382c716041
languageName: node
linkType: hard

Expand Down Expand Up @@ -4702,7 +4702,7 @@ resolve@^1.9.0:
version: 0.0.0-use.local
resolution: "ts-workspaces-repro@workspace:."
dependencies:
fork-ts-checker-webpack-plugin: ^6.2.6
fork-ts-checker-webpack-plugin: ^6.2.9
ts-loader: ^9.1.2
typescript: ^4.2.4
webpack: ^5.37.0
Expand Down

0 comments on commit a4dde59

Please sign in to comment.