Use tsconfig references (#561)

* Use tsconfig references

* Adjust

* tesconfig.eslint.json

* Bumps
This commit is contained in:
Jaco
2021-12-14 07:28:51 +01:00
committed by GitHub
parent 1cc9fb245f
commit cab6086826
28 changed files with 848 additions and 704 deletions
+2 -8
View File
@@ -6,19 +6,13 @@ const base = require('@polkadot/dev/config/eslint.cjs');
module.exports = {
...base,
ignorePatterns: [
'.eslintrc.js',
'.github/**',
'.vscode/**',
'.yarn/**',
'**/build/*',
'**/coverage/*',
'**/node_modules/*',
...base.ignorePatterns,
'**/*.d.ts'
],
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.json'
'./tsconfig.eslint.json'
]
},
rules: {
+4 -4
View File
@@ -32,10 +32,10 @@
"test:one": "polkadot-dev-run-test"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@polkadot/dev": "^0.63.40",
"@polkadot/ts": "^0.4.19",
"@babel/core": "^7.16.5",
"@babel/runtime": "^7.16.5",
"@polkadot/dev": "^0.64.3",
"@polkadot/ts": "^0.4.20",
"@polkadot/x-bundle": "^8.1.2",
"@types/jest": "^27.0.3",
"babel-loader": "^8.2.3",
+1 -1
View File
@@ -17,6 +17,6 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3"
"@babel/runtime": "^7.16.5"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../react-identicon" },
{ "path": "../ui-keyring" }
]
}
+1 -1
View File
@@ -17,6 +17,6 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3"
"@babel/runtime": "^7.16.5"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../ui-keyring" },
{ "path": "../vue-identicon" }
]
}
+3 -3
View File
@@ -39,11 +39,11 @@
"stream-http": "^3.2.0"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@babel/core": "^7.16.5",
"@babel/runtime": "^7.16.5",
"@react-native-community/cli-platform-ios": "^6.2.0",
"@types/react-test-renderer": "17.0.1",
"babel-jest": "^27.4.4",
"babel-jest": "^27.4.5",
"metro-react-native-babel-preset": "^0.66.2",
"react-test-renderer": "17.0.2"
},
+13
View File
@@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "."
},
"references": [
{ "path": "../reactnative-identicon" },
{ "path": "../ui-keyring" },
{ "path": "../ui-settings" }
]
}
+2 -2
View File
@@ -20,7 +20,7 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/keyring": "^8.1.2",
"@polkadot/ui-settings": "0.87.6-1",
"@polkadot/ui-shared": "0.87.6-1",
@@ -35,7 +35,7 @@
"devDependencies": {
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-dom": "^17.0.11",
"@types/styled-components": "^5.1.17",
"@types/styled-components": "^5.1.18",
"styled-components": "^5.3.3",
"xmlserializer": "^0.6.1"
},
+12
View File
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../ui-shared" },
{ "path": "../ui-settings" }
]
}
+2 -2
View File
@@ -17,7 +17,7 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
"qrcode-generator": "^1.4.4",
@@ -26,7 +26,7 @@
},
"devDependencies": {
"@types/react-qr-reader": "^2.1.4",
"@types/styled-components": "^5.1.17"
"@types/styled-components": "^5.1.18"
},
"peerDependencies": {
"@polkadot/util": "*",
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../ui-settings" }
]
}
+3 -3
View File
@@ -20,14 +20,14 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/ui-shared": "0.87.6-1",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
"react-native-svg": "^12.2.0"
"react-native-svg": "^12.1.1"
},
"devDependencies": {
"@types/react-native": "^0.66.8"
"@types/react-native": "^0.66.9"
},
"peerDependencies": {
"@polkadot/util": "*",
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../ui-shared" }
]
}
+1 -1
View File
@@ -16,6 +16,6 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3"
"@babel/runtime": "^7.16.5"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}
+1 -1
View File
@@ -19,7 +19,7 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/hw-ledger": "^8.1.2",
"@polkadot/keyring": "^8.1.2",
"@polkadot/ui-settings": "0.87.6-1",
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../ui-settings" }
]
}
+1 -1
View File
@@ -17,7 +17,7 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/networks": "^8.1.2",
"@polkadot/util": "^8.1.2",
"eventemitter3": "^4.0.7",
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}
+1 -1
View File
@@ -17,7 +17,7 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"color": "^3.2.1"
},
"devDependencies": {
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}
+1 -1
View File
@@ -20,7 +20,7 @@
"version": "0.87.6-1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/ui-shared": "0.87.6-1",
"@polkadot/util": "^8.1.2",
"@polkadot/util-crypto": "^8.1.2",
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": [
{ "path": "../ui-shared" }
]
}
+4 -4
View File
@@ -1,8 +1,8 @@
{
"extends": "@polkadot/dev/config/tsconfig.json",
"compilerOptions": {
"composite": true,
"paths": {
"compilerOptions": {
"composite": true,
"paths": {
"@polkadot/react-identicon": [ "react-identicon/src" ],
"@polkadot/react-identicon/*": [ "react-identicon/src/*" ],
"@polkadot/react-qr": [ "react-qr/src" ],
@@ -25,5 +25,5 @@
"./node_modules/@polkadot/ts",
"./node_modules/@types"
]
}
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./packages"
},
"include": ["packages/**/src/**/*", "packages/**/*.js"],
"exclue": ["**/node_modules/**/*"]
}
+16 -7
View File
@@ -1,10 +1,19 @@
{
"extends": "./tsconfig.base.json",
"exclude": [
"build/**/*",
"**/build/**/*"
],
"compilerOptions": {
"baseUrl": "./packages"
}
"composite": true
},
"files": [],
"references": [
{ "path": "./packages/example-react" },
{ "path": "./packages/example-vue" },
{ "path": "./packages/exampleReactNative" },
{ "path": "./packages/react-identicon" },
{ "path": "./packages/react-qr" },
{ "path": "./packages/reactnative-identicon" },
{ "path": "./packages/ui-assets" },
{ "path": "./packages/ui-keyring" },
{ "path": "./packages/ui-settings" },
{ "path": "./packages/ui-shared" },
{ "path": "./packages/vue-identicon" }
]
}
+677 -664
View File
File diff suppressed because it is too large Load Diff