Skip to content

Commit

Permalink
Add tsconfig.build (#324)
Browse files Browse the repository at this point in the history
* Add tsconfig.build

* composite
  • Loading branch information
jacogr authored Jan 11, 2022
1 parent 823961c commit 47e42a8
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 83 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
},
"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/dev": "^0.65.23",
"@polkadot/dev": "^0.65.25",
"@types/node": "^17.0.8",
"@types/yargs": "^17.0.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/api": "^7.3.1",
"@polkadot/keyring": "^8.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/json-serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/api": "^7.3.1",
"@polkadot/api-augment": "^7.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata-cmp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/api": "^7.3.1",
"@polkadot/keyring": "^8.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/monitor-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/api": "^7.3.1",
"@polkadot/types": "^7.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/signer-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/api": "^7.3.1",
"@polkadot/api-cli": "^0.48.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/vanitygen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@polkadot/util": "^8.3.1",
"@polkadot/util-crypto": "^8.3.1",
Expand Down
14 changes: 14 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"composite": true
},
"files": [],
"references": [
{ "path": "./packages/api-cli" },
{ "path": "./packages/json-serve" },
{ "path": "./packages/metadata-cmp" },
{ "path": "./packages/monitor-rpc" },
{ "path": "./packages/signer-cli" },
{ "path": "./packages/vanitygen" }
]
}
3 changes: 2 additions & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./packages"
"baseUrl": "./packages",
"composite": false
},
"include": [
"packages/**/src/**/*"
Expand Down
17 changes: 8 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"composite": true
"baseUrl": "./packages",
"composite": false
},
"files": [],
"references": [
{ "path": "./packages/api-cli" },
{ "path": "./packages/json-serve" },
{ "path": "./packages/metadata-cmp" },
{ "path": "./packages/monitor-rpc" },
{ "path": "./packages/signer-cli" },
{ "path": "./packages/vanitygen" }
"include": [
"packages/**/src/**/*"
],
"exclude": [
"**/node_modules/**/*"
]
}
Loading

0 comments on commit 47e42a8

Please sign in to comment.