Adjust tsconfig usage (w/ latest dev) (#1258)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/extension-mocks": "0.46.3"
|
||||
|
||||
@@ -5,14 +5,12 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-chains/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-dapp/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-mocks/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-chains/tsconfig.build.json" },
|
||||
{ "path": "../extension-dapp/tsconfig.build.json" },
|
||||
{ "path": "../extension-inject/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-base/tsconfig.build.json" },
|
||||
{ "path": "../extension-inject/tsconfig.build.json" },
|
||||
{ "path": "../extension-mocks/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -25,7 +25,7 @@
|
||||
"@polkadot/networks": "^12.2.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*",
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-inject/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -25,10 +25,11 @@
|
||||
"@polkadot/extension-inject": "0.46.3",
|
||||
"@polkadot/types": "^10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"tslib": "^2.5.0",
|
||||
"tslib": "^2.5.1",
|
||||
"web3": "^1.10.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*",
|
||||
"@polkadot/util": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-inject/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"@polkadot/extension-inject": "0.46.3",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*",
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-inject/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-dapp/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -18,18 +18,20 @@
|
||||
"version": "0.46.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "^10.7.1",
|
||||
"@polkadot/rpc-provider": "^10.7.1",
|
||||
"@polkadot/types": "^10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"@polkadot/x-global": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.235",
|
||||
"@types/chrome": "^0.0.236",
|
||||
"@types/firefox-webext-browser": "^111.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*"
|
||||
"@polkadot/api": "*",
|
||||
"@polkadot/util": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": []
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-inject/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -19,6 +19,6 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"sinon-chrome": "^3.0.1",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,14 @@ import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import { pathToFileURL } from 'node:url';
|
||||
|
||||
// Adjusts the resolver to point to empty files for .svg
|
||||
/**
|
||||
* Adjusts the resolver to point to empty files for .svg
|
||||
*
|
||||
* @param {*} specifier
|
||||
* @param {*} context
|
||||
* @param {*} nextResolve
|
||||
* @returns {*}
|
||||
*/
|
||||
export function resolve (specifier, context, nextResolve) {
|
||||
if (/\.(png|svg)$/.test(specifier)) {
|
||||
return {
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-inject/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@polkadot/api": "^10.7.1",
|
||||
"@polkadot/extension-base": "0.46.3",
|
||||
"@polkadot/extension-chains": "0.46.3",
|
||||
"@polkadot/extension-dapp": "0.46.3",
|
||||
@@ -47,7 +48,7 @@
|
||||
"react-router": "^5.3.4",
|
||||
"react-router-dom": "^5.3.4",
|
||||
"styled-components": "^5.3.10",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/extension-mocks": "0.46.3",
|
||||
|
||||
@@ -5,16 +5,14 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-base/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-chains/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-dapp/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-mocks/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-base/tsconfig.build.json" },
|
||||
{ "path": "../extension-chains/tsconfig.build.json" },
|
||||
{ "path": "../extension-dapp/tsconfig.build.json" },
|
||||
{ "path": "../extension-inject/tsconfig.build.json" },
|
||||
{ "path": "../extension-mocks/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-ui/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -17,13 +17,14 @@
|
||||
"type": "module",
|
||||
"version": "0.46.3",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "^10.7.1",
|
||||
"@polkadot/extension-base": "0.46.3",
|
||||
"@polkadot/extension-inject": "0.46.3",
|
||||
"@polkadot/extension-ui": "0.46.3",
|
||||
"tslib": "^2.5.0"
|
||||
"tslib": "^2.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.73.17",
|
||||
"@polkadot/dev": "^0.74.1",
|
||||
"browser-resolve": "^2.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
@@ -37,5 +38,9 @@
|
||||
"ts-loader": "^9.4.2",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack-extension-manifest-plugin": "^0.8.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "*",
|
||||
"webpack": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/build/*",
|
||||
"webpack.*.cjs"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension-base/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-inject/tsconfig.build.json"
|
||||
},
|
||||
{ "path": "../extension-ui/tsconfig.build.json"
|
||||
}
|
||||
{ "path": "../extension-base/tsconfig.build.json" },
|
||||
{ "path": "../extension-inject/tsconfig.build.json" },
|
||||
{ "path": "../extension-ui/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../extension/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -6,5 +6,6 @@ const createConfig = require('./webpack.shared.cjs');
|
||||
module.exports = createConfig({
|
||||
background: './src/background.ts',
|
||||
content: './src/content.ts',
|
||||
extension: './src/extension.ts',
|
||||
page: './src/page.ts'
|
||||
});
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
// Copyright 2019-2023 @polkadot/extension authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
const createConfig = require('./webpack.shared.cjs');
|
||||
|
||||
module.exports = createConfig(
|
||||
{
|
||||
extension: './src/extension.ts'
|
||||
}
|
||||
);
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2019-2023 @polkadot/extension authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
const createConfig = require('./webpack.shared.cjs');
|
||||
|
||||
module.exports = createConfig({
|
||||
background: './src/background.ts',
|
||||
content: './src/content.ts',
|
||||
extension: './src/extension.ts',
|
||||
page: './src/page.ts'
|
||||
});
|
||||
Reference in New Issue
Block a user