Skip to content

Commit 1550eb1

Browse files
authored
tsconfig path linting (#4358)
* tsconfig path linting * yarn.lock * Update @polkadot/dev
1 parent 5d01220 commit 1550eb1

File tree

13 files changed

+41
-21
lines changed

13 files changed

+41
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@babel/core": "^7.16.5",
3535
"@babel/register": "^7.16.5",
3636
"@babel/runtime": "^7.16.5",
37-
"@polkadot/dev": "^0.64.6",
37+
"@polkadot/dev": "^0.64.7",
3838
"@polkadot/ts": "^0.4.20",
3939
"@polkadot/typegen": "workspace:packages/typegen",
4040
"@types/jest": "^27.0.3",

packages/api-augment/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@polkadot/rpc-augment": "6.12.2-22",
2929
"@polkadot/types": "6.12.2-22",
3030
"@polkadot/types-augment": "6.12.2-22",
31-
"@polkadot/types-codec": "6.12.2-22"
31+
"@polkadot/types-codec": "6.12.2-22",
32+
"@polkadot/util": "^8.2.2"
3233
}
3334
}

packages/api-contract/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"@babel/runtime": "^7.16.5",
2727
"@polkadot/api": "6.12.2-22",
2828
"@polkadot/types": "6.12.2-22",
29+
"@polkadot/types-create": "6.12.2-22",
2930
"@polkadot/util": "^8.2.2",
31+
"@polkadot/util-crypto": "^8.2.2",
3032
"rxjs": "^7.4.0"
3133
}
3234
}

packages/api-contract/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
],
1616
"references": [
1717
{ "path": "../api" },
18-
{ "path": "../types" }
18+
{ "path": "../types" },
19+
{ "path": "../types-create" },
20+
{ "path": "../types-support" }
1921
]
2022
}

packages/api-derive/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.5",
27+
"@polkadot/api": "6.12.2-22",
2728
"@polkadot/api-base": "6.12.2-22",
2829
"@polkadot/rpc-core": "6.12.2-22",
2930
"@polkadot/types": "6.12.2-22",
30-
"@polkadot/types-codec": "6.12.2-22"
31+
"@polkadot/types-codec": "6.12.2-22",
32+
"@polkadot/util": "^8.2.2",
33+
"@polkadot/util-crypto": "^8.2.2",
34+
"rxjs": "^7.4.0"
3135
},
3236
"devDependencies": {
3337
"@polkadot/api": "6.12.2-22",

packages/api-derive/tsconfig.spec.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"noEmit": true
99
},
1010
"include": [
11-
"**/test/*",
11+
"**/test/*.ts",
1212
"**/checkTypes.manual.ts",
1313
"**/*.spec.ts"
1414
],
@@ -20,6 +20,7 @@
2020
{ "path": "../rpc-augment" },
2121
{ "path": "../types" },
2222
{ "path": "../types-augment" },
23-
{ "path": "../types-codec" }
23+
{ "path": "../types-codec" },
24+
{ "path": "../types-support" },
2425
]
2526
}

packages/api/src/detectPackage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ import { packageInfo as deriveInfo } from '@polkadot/api-derive/packageInfo';
55
import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo';
66
import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
77
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
8-
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
9-
import { packageInfo as createInfo } from '@polkadot/types-create/packageInfo';
108
import { packageInfo as knownInfo } from '@polkadot/types-known/packageInfo';
119
import { detectPackage } from '@polkadot/util';
1210

1311
import { packageInfo } from './packageInfo';
1412

15-
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [deriveInfo, coreInfo, providerInfo, typesInfo, codecInfo, createInfo, knownInfo]);
13+
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [deriveInfo, coreInfo, providerInfo, typesInfo, knownInfo]);

packages/rpc-augment/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.5",
2727
"@polkadot/rpc-core": "6.12.2-22",
28-
"@polkadot/types": "6.12.2-22"
28+
"@polkadot/types": "6.12.2-22",
29+
"@polkadot/util": "^8.2.2"
2930
}
3031
}

packages/rpc-provider/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.5",
27+
"@polkadot/keyring": "^8.2.2",
2728
"@polkadot/types": "6.12.2-22",
29+
"@polkadot/types-support": "6.12.2-22",
2830
"@polkadot/util": "^8.2.2",
2931
"@polkadot/util-crypto": "^8.2.2",
3032
"@polkadot/x-fetch": "^8.2.2",
3133
"@polkadot/x-global": "^8.2.2",
3234
"@polkadot/x-ws": "^8.2.2",
33-
"eventemitter3": "^4.0.7"
34-
},
35-
"devDependencies": {
36-
"@polkadot/keyring": "^8.2.2",
37-
"@polkadot/types": "6.12.2-22",
35+
"eventemitter3": "^4.0.7",
3836
"mock-socket": "^9.0.8",
3937
"nock": "^13.2.1"
4038
}

packages/rpc-provider/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"**/*.spec.ts"
1111
],
1212
"references": [
13-
{ "path": "../types" }
13+
{ "path": "../types" },
14+
{ "path": "../types-support" }
1415
]
1516
}

0 commit comments

Comments
 (0)