Skip to content

Commit 2ceb727

Browse files
authored
Update to tsconfig.build.json inside packages (#4444)
* Update to tsconfig.build.json inside packages * Update refs
1 parent bc4e656 commit 2ceb727

35 files changed

+361
-212
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
},
3333
"devDependencies": {
3434
"@babel/core": "^7.16.7",
35-
"@babel/register": "^7.16.8",
35+
"@babel/register": "^7.16.9",
3636
"@babel/runtime": "^7.16.7",
37-
"@polkadot/dev": "^0.65.27",
37+
"@polkadot/dev": "^0.65.31",
3838
"@polkadot/typegen": "workspace:packages/typegen",
3939
"@types/jest": "^27.4.0",
4040
"copyfiles": "^2.4.1"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"baseUrl": "..",
5+
"outDir": "./build",
6+
"rootDir": "./src"
7+
},
8+
"exclude": [
9+
"**/kusama/*.ts",
10+
"**/polkadot/*.ts"
11+
],
12+
"references": [
13+
{
14+
"path": "../api-base/tsconfig.build.json"
15+
},
16+
{
17+
"path": "../rpc-augment/tsconfig.build.json"
18+
},
19+
{
20+
"path": "../types/tsconfig.build.json"
21+
},
22+
{
23+
"path": "../types-codec/tsconfig.build.json"
24+
},
25+
{
26+
"path": "../types-augment/tsconfig.build.json"
27+
}
28+
]
29+
}

packages/api-augment/tsconfig.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/api-augment/tsconfig.kusama.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"**/kusama/*.ts"
1111
],
1212
"references": [
13-
{ "path": "../api-base" },
14-
{ "path": "../rpc-augment" },
15-
{ "path": "../types" },
16-
{ "path": "../types-codec" },
17-
{ "path": "../types-augment" }
13+
{ "path": "../api-base/tsconfig.build.json" },
14+
{ "path": "../rpc-augment/tsconfig.build.json" },
15+
{ "path": "../types/tsconfig.build.json" },
16+
{ "path": "../types-codec/tsconfig.build.json" },
17+
{ "path": "../types-augment/tsconfig.build.json" }
1818
]
1919
}

packages/api-augment/tsconfig.polkadot.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"**/polkadot/*.ts"
1111
],
1212
"references": [
13-
{ "path": "../api-base" },
14-
{ "path": "../rpc-augment" },
15-
{ "path": "../types" },
16-
{ "path": "../types-codec" },
17-
{ "path": "../types-augment" }
13+
{ "path": "../api-base/tsconfig.build.json" },
14+
{ "path": "../rpc-augment/tsconfig.build.json" },
15+
{ "path": "../types/tsconfig.build.json" },
16+
{ "path": "../types-codec/tsconfig.build.json" },
17+
{ "path": "../types-augment/tsconfig.build.json" }
1818
]
1919
}

packages/types-augment/tsconfig.json renamed to packages/api-base/tsconfig.build.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
"rootDir": "./src"
77
},
88
"references": [
9-
{ "path": "../types" },
10-
{ "path": "../types-codec" }
9+
{
10+
"path": "../rpc-core/tsconfig.build.json"
11+
},
12+
{
13+
"path": "../types/tsconfig.build.json"
14+
}
1115
]
1216
}

packages/api-contract/tsconfig.json renamed to packages/api-contract/tsconfig.build.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@
1414
"mock.ts"
1515
],
1616
"references": [
17-
{ "path": "../api" },
18-
{ "path": "../types" },
19-
{ "path": "../types-codec" },
20-
{ "path": "../types-create" }
17+
{
18+
"path": "../api/tsconfig.build.json"
19+
},
20+
{
21+
"path": "../types/tsconfig.build.json"
22+
},
23+
{
24+
"path": "../types-codec/tsconfig.build.json"
25+
},
26+
{
27+
"path": "../types-create/tsconfig.build.json"
28+
}
2129
]
2230
}

packages/api-contract/tsconfig.spec.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"mock.ts"
1818
],
1919
"references": [
20-
{ "path": "../api" },
21-
{ "path": "../api-augment" },
22-
{ "path": "../api-contract" },
23-
{ "path": "../types" }
20+
{ "path": "../api/tsconfig.build.json" },
21+
{ "path": "../api-augment/tsconfig.build.json" },
22+
{ "path": "../api-contract/tsconfig.build.json" },
23+
{ "path": "../types/tsconfig.build.json" }
2424
]
2525
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"baseUrl": "..",
5+
"outDir": "./build",
6+
"rootDir": "./src"
7+
},
8+
"exclude": [
9+
"**/test/*",
10+
"**/checkTypes.manual.ts",
11+
"**/*.spec.ts"
12+
],
13+
"references": [
14+
{
15+
"path": "../api-base/tsconfig.build.json"
16+
},
17+
{
18+
"path": "../api-augment/tsconfig.build.json"
19+
},
20+
{
21+
"path": "../rpc-core/tsconfig.build.json"
22+
},
23+
{
24+
"path": "../types/tsconfig.build.json"
25+
},
26+
{
27+
"path": "../types-codec/tsconfig.build.json"
28+
}
29+
]
30+
}

packages/api-derive/tsconfig.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)