Skip to content

Commit

Permalink
Add tsconfig.build (polkadot-js#6813)
Browse files Browse the repository at this point in the history
* Add tsconfig.build

* eslint tsconfig
  • Loading branch information
jacogr authored Jan 11, 2022
1 parent 1ad02c7 commit a3a449e
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.json'
'./tsconfig.eslint.json'
]
},
rules: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
},
"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/register": "^7.16.8",
"@babel/runtime": "^7.16.7",
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.1.23",
"@polkadot/dev": "^0.65.23",
"@polkadot/dev": "^0.65.25",
"@types/bn.js": "^4.11.6",
"@types/chart.js": "^2.9.35",
"@types/file-saver": "^2.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"lodash": "^4.17.21",
"moonbeam-types-bundle": "2.0.2",
"pontem-types-bundle": "1.0.15",
"rxjs": "^7.5.1"
"rxjs": "^7.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/apps-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/polyfill": "^7.12.1",
"@polkadot/dev": "^0.65.23",
"@polkadot/dev": "^0.65.25",
"@polkadot/react-components": "^0.101.2-4",
"electron-log": "^4.4.4",
"electron-updater": "^4.6.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@babel/runtime": "^7.16.7",
"@polkadot/apps-config": "^0.101.2-4",
"@polkadot/apps-routing": "^0.101.2-4",
"@polkadot/dev": "^0.65.23",
"@polkadot/dev": "^0.65.25",
"@polkadot/react-api": "^0.101.2-4",
"@polkadot/react-components": "^0.101.2-4",
"@polkadot/react-hooks": "^0.101.2-4",
Expand Down
2 changes: 1 addition & 1 deletion packages/page-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": "0.101.2-4",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@polkadot/phishing": "^0.8.9",
"@polkadot/phishing": "^0.8.11",
"@polkadot/react-components": "^0.101.2-4",
"@polkadot/vanitygen": "^0.48.11",
"detect-browser": "^5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@polkadot/extension-dapp": "^0.42.5",
"@substrate/connect": "0.4.6",
"fflate": "^0.7.2",
"rxjs": "^7.5.1"
"rxjs": "^7.5.2"
}
}
11 changes: 11 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.base.json",
"exclude": [
"build/**/*",
"**/build/**/*"
],
"compilerOptions": {
"baseUrl": "./packages",
"outDir": "./build"
}
}
3 changes: 2 additions & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"**/build/**/*"
],
"compilerOptions": {
"baseUrl": "./packages"
"baseUrl": "./packages",
"composite": false
}
}
14 changes: 8 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"extends": "./tsconfig.base.json",
"exclude": [
"build/**/*",
"**/build/**/*"
],
"compilerOptions": {
"baseUrl": "./packages",
"outDir": "./build"
}
"composite": false
},
"include": [
"packages/**/src/**/*"
],
"exclude": [
"**/node_modules/**/*"
]
}
Loading

0 comments on commit a3a449e

Please sign in to comment.