Skip to content

Commit

Permalink
Merge pull request #1 from piotr-oles/main
Browse files Browse the repository at this point in the history
Add project references configuration
  • Loading branch information
jtbandes committed May 14, 2021
2 parents 0583ab2 + bc47e67 commit a6c53e9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

node_modules
dist
tsconfig.tsbuildinfo

# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
Expand Down
6 changes: 5 additions & 1 deletion packages/pkg1/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"compilerOptions": {
"composite": true,
"declaration": true
},
"include": ["./*.ts"]
}
}
6 changes: 5 additions & 1 deletion packages/pkg2/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"compilerOptions": {
"composite": true,
"declaration": true
},
"include": ["./*.ts"]
}
}
12 changes: 10 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"include": ["./src/*.ts"]
}
"include": ["./src/*.ts"],
"references": [
{
"path":"./packages/pkg1"
},
{
"path": "./packages/pkg2"
}
]
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ module.exports = {
},
],
},
plugins: [new ForkTsCheckerWebpackPlugin()],
plugins: [new ForkTsCheckerWebpackPlugin({ typescript: { build: true }})],
};

0 comments on commit a6c53e9

Please sign in to comment.