Bläddra i källkod

update tsconfig

Jordan Sexton 3 år sedan
förälder
incheckning
33af6643ac
100 ändrade filer med 703 tillägg och 315 borttagningar
  1. 2 0
      package.json
  2. 3 6
      packages/core/base/tsconfig.cjs.json
  3. 8 0
      packages/core/base/tsconfig.esm.json
  4. 11 0
      packages/core/base/tsconfig.root.json
  5. 4 5
      packages/core/react/tsconfig.cjs.json
  6. 2 2
      packages/core/react/tsconfig.esm.json
  7. 17 0
      packages/core/react/tsconfig.root.json
  8. 0 7
      packages/core/react/tsconfig.test.json
  9. 7 0
      packages/core/react/tsconfig.tests.json
  10. 8 0
      packages/starter/create-react-app-starter/tsconfig.base.json
  11. 2 2
      packages/starter/create-react-app-starter/tsconfig.json
  12. 20 0
      packages/starter/create-react-app-starter/tsconfig.root.json
  13. 8 0
      packages/starter/example/tsconfig.base.json
  14. 26 0
      packages/starter/example/tsconfig.root.json
  15. 8 0
      packages/starter/material-ui-starter/tsconfig.base.json
  16. 2 3
      packages/starter/material-ui-starter/tsconfig.json
  17. 20 0
      packages/starter/material-ui-starter/tsconfig.root.json
  18. 8 0
      packages/starter/nextjs-starter/tsconfig.base.json
  19. 20 0
      packages/starter/nextjs-starter/tsconfig.root.json
  20. 8 0
      packages/starter/react-ui-starter/tsconfig.base.json
  21. 2 3
      packages/starter/react-ui-starter/tsconfig.json
  22. 20 0
      packages/starter/react-ui-starter/tsconfig.root.json
  23. 4 5
      packages/ui/ant-design/tsconfig.cjs.json
  24. 3 2
      packages/ui/ant-design/tsconfig.esm.json
  25. 17 0
      packages/ui/ant-design/tsconfig.root.json
  26. 4 5
      packages/ui/material-ui/tsconfig.cjs.json
  27. 3 3
      packages/ui/material-ui/tsconfig.esm.json
  28. 17 0
      packages/ui/material-ui/tsconfig.root.json
  29. 4 5
      packages/ui/react-ui/tsconfig.cjs.json
  30. 3 2
      packages/ui/react-ui/tsconfig.esm.json
  31. 0 9
      packages/ui/react-ui/tsconfig.json
  32. 17 0
      packages/ui/react-ui/tsconfig.root.json
  33. 3 6
      packages/wallets/avana/tsconfig.cjs.json
  34. 8 0
      packages/wallets/avana/tsconfig.esm.json
  35. 0 9
      packages/wallets/avana/tsconfig.json
  36. 14 0
      packages/wallets/avana/tsconfig.root.json
  37. 3 6
      packages/wallets/backpack/tsconfig.cjs.json
  38. 8 0
      packages/wallets/backpack/tsconfig.esm.json
  39. 0 9
      packages/wallets/backpack/tsconfig.json
  40. 14 0
      packages/wallets/backpack/tsconfig.root.json
  41. 3 6
      packages/wallets/bitkeep/tsconfig.cjs.json
  42. 8 0
      packages/wallets/bitkeep/tsconfig.esm.json
  43. 0 9
      packages/wallets/bitkeep/tsconfig.json
  44. 14 0
      packages/wallets/bitkeep/tsconfig.root.json
  45. 3 6
      packages/wallets/bitpie/tsconfig.cjs.json
  46. 8 0
      packages/wallets/bitpie/tsconfig.esm.json
  47. 0 9
      packages/wallets/bitpie/tsconfig.json
  48. 14 0
      packages/wallets/bitpie/tsconfig.root.json
  49. 3 6
      packages/wallets/blocto/tsconfig.cjs.json
  50. 8 0
      packages/wallets/blocto/tsconfig.esm.json
  51. 0 9
      packages/wallets/blocto/tsconfig.json
  52. 14 0
      packages/wallets/blocto/tsconfig.root.json
  53. 3 6
      packages/wallets/brave/tsconfig.cjs.json
  54. 8 0
      packages/wallets/brave/tsconfig.esm.json
  55. 0 9
      packages/wallets/brave/tsconfig.json
  56. 14 0
      packages/wallets/brave/tsconfig.root.json
  57. 3 6
      packages/wallets/clover/tsconfig.cjs.json
  58. 8 0
      packages/wallets/clover/tsconfig.esm.json
  59. 0 9
      packages/wallets/clover/tsconfig.json
  60. 14 0
      packages/wallets/clover/tsconfig.root.json
  61. 3 6
      packages/wallets/coin98/tsconfig.cjs.json
  62. 8 0
      packages/wallets/coin98/tsconfig.esm.json
  63. 0 9
      packages/wallets/coin98/tsconfig.json
  64. 14 0
      packages/wallets/coin98/tsconfig.root.json
  65. 3 6
      packages/wallets/coinbase/tsconfig.cjs.json
  66. 8 0
      packages/wallets/coinbase/tsconfig.esm.json
  67. 0 9
      packages/wallets/coinbase/tsconfig.json
  68. 14 0
      packages/wallets/coinbase/tsconfig.root.json
  69. 3 6
      packages/wallets/coinhub/tsconfig.cjs.json
  70. 8 0
      packages/wallets/coinhub/tsconfig.esm.json
  71. 0 9
      packages/wallets/coinhub/tsconfig.json
  72. 14 0
      packages/wallets/coinhub/tsconfig.root.json
  73. 3 6
      packages/wallets/exodus/tsconfig.cjs.json
  74. 8 0
      packages/wallets/exodus/tsconfig.esm.json
  75. 0 9
      packages/wallets/exodus/tsconfig.json
  76. 14 0
      packages/wallets/exodus/tsconfig.root.json
  77. 3 6
      packages/wallets/fake/tsconfig.cjs.json
  78. 8 0
      packages/wallets/fake/tsconfig.esm.json
  79. 0 9
      packages/wallets/fake/tsconfig.json
  80. 14 0
      packages/wallets/fake/tsconfig.root.json
  81. 3 6
      packages/wallets/glow/tsconfig.cjs.json
  82. 8 0
      packages/wallets/glow/tsconfig.esm.json
  83. 0 9
      packages/wallets/glow/tsconfig.json
  84. 14 0
      packages/wallets/glow/tsconfig.root.json
  85. 3 6
      packages/wallets/huobi/tsconfig.cjs.json
  86. 8 0
      packages/wallets/huobi/tsconfig.esm.json
  87. 0 9
      packages/wallets/huobi/tsconfig.json
  88. 14 0
      packages/wallets/huobi/tsconfig.root.json
  89. 3 6
      packages/wallets/hyperpay/tsconfig.cjs.json
  90. 8 0
      packages/wallets/hyperpay/tsconfig.esm.json
  91. 0 9
      packages/wallets/hyperpay/tsconfig.json
  92. 14 0
      packages/wallets/hyperpay/tsconfig.root.json
  93. 3 6
      packages/wallets/keystone/tsconfig.cjs.json
  94. 8 0
      packages/wallets/keystone/tsconfig.esm.json
  95. 0 10
      packages/wallets/keystone/tsconfig.json
  96. 14 0
      packages/wallets/keystone/tsconfig.root.json
  97. 3 6
      packages/wallets/krystal/tsconfig.cjs.json
  98. 8 0
      packages/wallets/krystal/tsconfig.esm.json
  99. 0 9
      packages/wallets/krystal/tsconfig.json
  100. 14 0
      packages/wallets/krystal/tsconfig.root.json

+ 2 - 0
package.json

@@ -39,6 +39,8 @@
         "eslint": "^8.20.0",
         "eslint-config-prettier": "^8.5.0",
         "eslint-plugin-prettier": "^4.2.1",
+        "eslint-plugin-react": "^7.30.1",
+        "eslint-plugin-react-hooks": "^4.6.0",
         "gh-pages": "^4.0.0",
         "lerna": "^5.3.0",
         "pnpm": "^7.8.0",

+ 3 - 6
packages/core/base/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/core/base/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 11 - 0
packages/core/base/tsconfig.root.json

@@ -0,0 +1,11 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 4 - 5
packages/core/react/tsconfig.cjs.json

@@ -1,10 +1,9 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
         "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "jsx": "react"
     }
 }

+ 2 - 2
packages/core/react/tsconfig.json → packages/core/react/tsconfig.esm.json

@@ -1,10 +1,10 @@
 {
-    "extends": "../../../tsconfig.json",
+    "extends": "../../../tsconfig.esm.json",
     "include": ["src"],
     "exclude": ["src/**/__tests__"],
     "compilerOptions": {
         "outDir": "lib/esm",
         "declarationDir": "lib/types",
-        "noEmit": false
+        "jsx": "react"
     }
 }

+ 17 - 0
packages/core/react/tsconfig.root.json

@@ -0,0 +1,17 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        },
+        {
+            "path": "./tsconfig.tests.json"
+        }
+    ]
+}

+ 0 - 7
packages/core/react/tsconfig.test.json

@@ -1,7 +0,0 @@
-{
-    "extends": "./tsconfig.json",
-    "compilerOptions": {
-        "noEmit": true,
-        "allowJs": true
-    }
-}

+ 7 - 0
packages/core/react/tsconfig.tests.json

@@ -0,0 +1,7 @@
+{
+    "extends": "../../../tsconfig.tests.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "jsx": "react"
+    }
+}

+ 8 - 0
packages/starter/create-react-app-starter/tsconfig.base.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.base.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib",
+        "jsx": "react"
+    }
+}

+ 2 - 2
packages/starter/create-react-app-starter/tsconfig.json

@@ -1,4 +1,5 @@
 {
+    "include": ["src"],
     "compilerOptions": {
         "target": "es5",
         "lib": ["dom", "dom.iterable", "esnext"],
@@ -15,6 +16,5 @@
         "isolatedModules": true,
         "noEmit": true,
         "jsx": "react-jsx"
-    },
-    "include": ["src"]
+    }
 }

+ 20 - 0
packages/starter/create-react-app-starter/tsconfig.root.json

@@ -0,0 +1,20 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "../../ui/react-ui"
+        },
+        {
+            "path": "../../wallets/wallets"
+        },
+        {
+            "path": "./tsconfig.base.json"
+        }
+    ]
+}

+ 8 - 0
packages/starter/example/tsconfig.base.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.base.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib",
+        "jsx": "react"
+    }
+}

+ 26 - 0
packages/starter/example/tsconfig.root.json

@@ -0,0 +1,26 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "../../ui/ant-design"
+        },
+        {
+            "path": "../../ui/material-ui"
+        },
+        {
+            "path": "../../ui/react-ui"
+        },
+        {
+            "path": "../../wallets/wallets"
+        },
+        {
+            "path": "./tsconfig.base.json"
+        }
+    ]
+}

+ 8 - 0
packages/starter/material-ui-starter/tsconfig.base.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.base.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib",
+        "jsx": "react"
+    }
+}

+ 2 - 3
packages/starter/material-ui-starter/tsconfig.json

@@ -1,5 +1,5 @@
 {
-    "include": ["src", "types"],
+    "include": ["src"],
     "compilerOptions": {
         "noEmit": true,
         "target": "esnext",
@@ -9,7 +9,6 @@
         "strict": true,
         "esModuleInterop": true,
         "resolveJsonModule": true,
-        "isolatedModules": true,
-        "typeRoots": ["node_modules/@types"]
+        "isolatedModules": true
     }
 }

+ 20 - 0
packages/starter/material-ui-starter/tsconfig.root.json

@@ -0,0 +1,20 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "../../ui/material-ui"
+        },
+        {
+            "path": "../../wallets/wallets"
+        },
+        {
+            "path": "./tsconfig.base.json"
+        }
+    ]
+}

+ 8 - 0
packages/starter/nextjs-starter/tsconfig.base.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.base.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib",
+        "jsx": "react"
+    }
+}

+ 20 - 0
packages/starter/nextjs-starter/tsconfig.root.json

@@ -0,0 +1,20 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "../../ui/react-ui"
+        },
+        {
+            "path": "../../wallets/wallets"
+        },
+        {
+            "path": "./tsconfig.base.json"
+        }
+    ]
+}

+ 8 - 0
packages/starter/react-ui-starter/tsconfig.base.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.base.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib",
+        "jsx": "react"
+    }
+}

+ 2 - 3
packages/starter/react-ui-starter/tsconfig.json

@@ -1,5 +1,5 @@
 {
-    "include": ["src", "types"],
+    "include": ["src"],
     "compilerOptions": {
         "noEmit": true,
         "target": "esnext",
@@ -9,7 +9,6 @@
         "strict": true,
         "esModuleInterop": true,
         "resolveJsonModule": true,
-        "isolatedModules": true,
-        "typeRoots": ["node_modules/@types"]
+        "isolatedModules": true
     }
 }

+ 20 - 0
packages/starter/react-ui-starter/tsconfig.root.json

@@ -0,0 +1,20 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "../../ui/react-ui"
+        },
+        {
+            "path": "../../wallets/wallets"
+        },
+        {
+            "path": "./tsconfig.base.json"
+        }
+    ]
+}

+ 4 - 5
packages/ui/ant-design/tsconfig.cjs.json

@@ -1,10 +1,9 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
         "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "jsx": "react"
     }
 }

+ 3 - 2
packages/core/base/tsconfig.json → packages/ui/ant-design/tsconfig.esm.json

@@ -1,9 +1,10 @@
 {
-    "extends": "../../../tsconfig.json",
+    "extends": "../../../tsconfig.esm.json",
     "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
         "outDir": "lib/esm",
         "declarationDir": "lib/types",
-        "noEmit": false
+        "jsx": "react"
     }
 }

+ 17 - 0
packages/ui/ant-design/tsconfig.root.json

@@ -0,0 +1,17 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 4 - 5
packages/ui/material-ui/tsconfig.cjs.json

@@ -1,10 +1,9 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
         "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "jsx": "react"
     }
 }

+ 3 - 3
packages/ui/material-ui/tsconfig.json → packages/ui/material-ui/tsconfig.esm.json

@@ -1,10 +1,10 @@
 {
-    "extends": "../../../tsconfig.json",
+    "extends": "../../../tsconfig.esm.json",
     "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
         "outDir": "lib/esm",
         "declarationDir": "lib/types",
-        "noEmit": false,
-        "skipLibCheck": true
+        "jsx": "react"
     }
 }

+ 17 - 0
packages/ui/material-ui/tsconfig.root.json

@@ -0,0 +1,17 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 4 - 5
packages/ui/react-ui/tsconfig.cjs.json

@@ -1,10 +1,9 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
         "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "jsx": "react"
     }
 }

+ 3 - 2
packages/ui/ant-design/tsconfig.json → packages/ui/react-ui/tsconfig.esm.json

@@ -1,9 +1,10 @@
 {
-    "extends": "../../../tsconfig.json",
+    "extends": "../../../tsconfig.esm.json",
     "include": ["src"],
+    "exclude": ["src/**/__tests__"],
     "compilerOptions": {
         "outDir": "lib/esm",
         "declarationDir": "lib/types",
-        "noEmit": false
+        "jsx": "react"
     }
 }

+ 0 - 9
packages/ui/react-ui/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 17 - 0
packages/ui/react-ui/tsconfig.root.json

@@ -0,0 +1,17 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "../../core/react"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/avana/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/avana/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/avana/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/avana/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/backpack/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/backpack/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/backpack/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/backpack/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/bitkeep/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/bitkeep/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/bitkeep/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/bitkeep/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/bitpie/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/bitpie/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/bitpie/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/bitpie/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/blocto/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/blocto/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/blocto/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/blocto/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/brave/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/brave/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/brave/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/brave/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/clover/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/clover/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/clover/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/clover/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/coin98/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/coin98/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/coin98/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/coin98/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/coinbase/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/coinbase/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/coinbase/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/coinbase/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/coinhub/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/coinhub/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/coinhub/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/coinhub/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/exodus/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/exodus/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/exodus/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/exodus/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/fake/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/fake/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/fake/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/fake/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/glow/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/glow/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/glow/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/glow/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/huobi/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/huobi/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/huobi/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/huobi/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/hyperpay/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/hyperpay/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/hyperpay/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/hyperpay/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/keystone/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/keystone/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 10
packages/wallets/keystone/tsconfig.json

@@ -1,10 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false,
-        "noUncheckedIndexedAccess": false
-    }
-}

+ 14 - 0
packages/wallets/keystone/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

+ 3 - 6
packages/wallets/krystal/tsconfig.cjs.json

@@ -1,10 +1,7 @@
 {
-    "extends": "./tsconfig.json",
+    "extends": "../../../tsconfig.cjs.json",
+    "include": ["src"],
     "compilerOptions": {
-        "target": "es6",
-        "module": "commonjs",
-        "outDir": "lib/cjs",
-        "declarationDir": null,
-        "declaration": false
+        "outDir": "lib/cjs"
     }
 }

+ 8 - 0
packages/wallets/krystal/tsconfig.esm.json

@@ -0,0 +1,8 @@
+{
+    "extends": "../../../tsconfig.esm.json",
+    "include": ["src"],
+    "compilerOptions": {
+        "outDir": "lib/esm",
+        "declarationDir": "lib/types"
+    }
+}

+ 0 - 9
packages/wallets/krystal/tsconfig.json

@@ -1,9 +0,0 @@
-{
-    "extends": "../../../tsconfig.json",
-    "include": ["src"],
-    "compilerOptions": {
-        "outDir": "lib/esm",
-        "declarationDir": "lib/types",
-        "noEmit": false
-    }
-}

+ 14 - 0
packages/wallets/krystal/tsconfig.root.json

@@ -0,0 +1,14 @@
+{
+    "extends": "../../../tsconfig.root.json",
+    "references": [
+        {
+            "path": "../../core/base"
+        },
+        {
+            "path": "./tsconfig.cjs.json"
+        },
+        {
+            "path": "./tsconfig.esm.json"
+        }
+    ]
+}

Vissa filer visades inte eftersom för många filer har ändrats