removing react from runtime, using same version for shared deps

This commit is contained in:
Sebastian 2022-10-26 14:45:54 -03:00
parent c747ae6036
commit 5c4da55c4a
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 33 additions and 60 deletions

View File

@ -9,57 +9,14 @@
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"pretty": "prettier --write src"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"preact",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"build/"
],
"rules": {
"@typescript-eslint/no-explicit-any": [
0
],
"@typescript-eslint/ban-ts-comment": [
1
],
"quotes": [
2,
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": false
}
],
"indent": [
2,
2
],
"prefer-arrow-callback": [
2,
{
"allowNamedFunctions": false,
"allowUnboundThis": true
}
],
"curly": [
2,
"multi"
],
"prefer-template": [
1
]
}
},
"dependencies": {
"date-fns": "2.29.3",
"jed": "1.1.1",
"preact-render-to-string": "^5.2.6",
"preact-router": "^4.1.0",
"preact": "10.6.5",
"preact-router": "3.2.1",
"qrcode-generator": "^1.4.4",
"swr": "~1.3.0"
"react": "npm:@preact/compat@^17.1.2",
"swr": "1.3.0"
},
"devDependencies": {
"@creativebulma/bulma-tooltip": "^1.2.0",
@ -74,7 +31,7 @@
"eslint": "^8.26.0",
"eslint-config-preact": "^1.2.0",
"po2json": "^0.4.5",
"preact": "10.11.2",
"sass": "1.32.13",
"typescript": "^4.4.4"
}
}

View File

@ -108,19 +108,21 @@ importers:
eslint-config-preact: ^1.2.0
jed: 1.1.1
po2json: ^0.4.5
preact: 10.11.2
preact-render-to-string: ^5.2.6
preact-router: ^4.1.0
preact: 10.6.5
preact-router: 3.2.1
qrcode-generator: ^1.4.4
swr: ~1.3.0
react: npm:@preact/compat@^17.1.2
sass: 1.32.13
swr: 1.3.0
typescript: ^4.4.4
dependencies:
date-fns: 2.29.3
jed: 1.1.1
preact-render-to-string: 5.2.6_preact@10.11.2
preact-router: 4.1.0_preact@10.11.2
preact: 10.6.5
preact-router: 3.2.1_preact@10.6.5
qrcode-generator: 1.4.4
swr: 1.3.0
react: /@preact/compat/17.1.2_preact@10.6.5
swr: 1.3.0_@preact+compat@17.1.2
devDependencies:
'@creativebulma/bulma-tooltip': 1.2.0
'@gnu-taler/pogen': link:../pogen
@ -134,7 +136,7 @@ importers:
eslint: 8.26.0
eslint-config-preact: 1.3.0_fy74h4y2g2kkrxhvsefhiowl74
po2json: 0.4.5
preact: 10.11.2
sass: 1.32.13
typescript: 4.8.4
packages/idb-bridge:
@ -4054,6 +4056,14 @@ packages:
preact: 10.6.1
dev: true
/@preact/compat/17.1.2_preact@10.6.5:
resolution: {integrity: sha512-7pOZN9lMDDRQ+6aWvjwTp483KR8/zOpfS83wmOo3zfuLKdngS8/5RLbsFWzFZMGdYlotAhX980hJ75bjOHTwWg==}
peerDependencies:
preact: '*'
dependencies:
preact: 10.6.5
dev: false
/@prefresh/babel-plugin/0.4.4:
resolution: {integrity: sha512-/EvgIFMDL+nd20WNvMO0JQnzIl1EJPgmSaSYrZUww7A+aSdKsi37aL07TljrZR1cBMuzFxcr4xvqsUQLFJEukw==}
dev: true
@ -17676,12 +17686,12 @@ packages:
preact: 10.6.1
dev: false
/preact-router/4.1.0_preact@10.11.2:
resolution: {integrity: sha512-y1w2YvVpKAju9FMV+fAVR1NpH4MW5q07BZrziMZeg6F/rGJ9KvLUZtjOqsy2I8fDYiX36AM1AQTXIIK3jigBhA==}
/preact-router/3.2.1_preact@10.6.5:
resolution: {integrity: sha512-KEN2VN1DxUlTwzW5IFkF13YIA2OdQ2OvgJTkQREF+AA2NrHRLaGbB68EjS4IeZOa1shvQ1FvEm3bSLta4sXBhg==}
peerDependencies:
preact: '>=10'
dependencies:
preact: 10.11.2
preact: 10.6.5
dev: false
/preact/10.11.2:
@ -17690,6 +17700,10 @@ packages:
/preact/10.6.1:
resolution: {integrity: sha512-ydCg+ISIq70vqiThvNWStZWLRjR9U2awP/JAmGdWUKm9+Tyuy+MqVdAIyEByeIspAVtD4GWC/SJtxO8XD4knVA==}
/preact/10.6.5:
resolution: {integrity: sha512-i+LXM6JiVjQXSt2jG2vZZFapGpCuk1fl8o6ii3G84MA3xgj686FKjs4JFDkmUVhtxyq21+4ay74zqPykz9hU6w==}
dev: false
/prelude-ls/1.1.2:
resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==}
engines: {node: '>= 0.8.0'}
@ -19811,10 +19825,12 @@ packages:
react: ^16.11.0 || ^17.0.0 || ^18.0.0
dev: false
/swr/1.3.0:
/swr/1.3.0_@preact+compat@17.1.2:
resolution: {integrity: sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==}
peerDependencies:
react: ^16.11.0 || ^17.0.0 || ^18.0.0
dependencies:
react: /@preact/compat/17.1.2_preact@10.6.5
dev: false
/symbol-tree/3.2.4: