Skip to content

Commit 6f7e606

Browse files
authored
Merge pull request #3559 from RedisInsight/feature/RI-5413-enhance-web-builds
enhance web builds
2 parents f198d49 + eab4bcd commit 6f7e606

File tree

7 files changed

+119
-166
lines changed

7 files changed

+119
-166
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ jobs:
707707
command: |
708708
yarn install
709709
yarn --cwd redisinsight/api/ install
710+
yarn --cwd redisinsight/ install
710711
yarn build:statics
711712
no_output_timeout: 15m
712713
- run:
@@ -799,9 +800,12 @@ jobs:
799800
npm install --global yarn
800801
801802
# set ALL_REDIS_COMMANDS=$(curl $ALL_REDIS_COMMANDS_RAW_URL)
803+
# install dependencies
802804
yarn install
803805
yarn --cwd redisinsight/api/ install
806+
yarn --cwd redisinsight/ install
804807
yarn build:statics:win
808+
805809
if [ << parameters.env >> == 'prod' ]; then
806810
yarn package:prod
807811
rm -rf release/win-unpacked

electron-builder.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@
5252
"asarUnpack": ["node_modules"],
5353
"provisioningProfile": "embedded.provisionprofile",
5454
"binaries": [
55-
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node",
56-
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-x64/node_sqlite3.node",
57-
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node",
58-
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-x64/node_sqlite3.node",
55+
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
56+
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
5957
"Contents/Resources/app-arm64.asar.unpacked/node_modules/keytar/build/Release/keytar.node",
6058
"Contents/Resources/app-x64.asar.unpacked/node_modules/keytar/build/Release/keytar.node"
6159
],
@@ -70,10 +68,8 @@
7068
"asarUnpack": ["node_modules"],
7169
"provisioningProfile": "dev.provisionprofile",
7270
"binaries": [
73-
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node",
74-
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-x64/node_sqlite3.node",
75-
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node",
76-
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-x64/node_sqlite3.node",
71+
"Contents/Resources/app-x64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
72+
"Contents/Resources/app-arm64.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node",
7773
"Contents/Resources/app-arm64.asar.unpacked/node_modules/keytar/build/Release/keytar.node",
7874
"Contents/Resources/app-x64.asar.unpacked/node_modules/keytar/build/Release/keytar.node"
7975
],

redisinsight/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"socket.io": "^4.6.2",
8686
"socket.io-client": "^4.7.5",
8787
"source-map-support": "^0.5.19",
88-
"sqlite3": "5.1.6",
88+
"sqlite3": "5.1.7",
8989
"swagger-ui-express": "^4.1.4",
9090
"tunnel-ssh": "^5.1.2",
9191
"typeorm": "^0.3.9",

redisinsight/api/yarn.lock

Lines changed: 47 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -701,21 +701,6 @@
701701
dependencies:
702702
"@lukeed/csprng" "^1.1.0"
703703

704-
"@mapbox/node-pre-gyp@^1.0.0":
705-
version "1.0.11"
706-
resolved "https://registry.yarnpkg.com/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz#417db42b7f5323d79e93b34a6d7a2a12c0df43fa"
707-
integrity sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==
708-
dependencies:
709-
detect-libc "^2.0.0"
710-
https-proxy-agent "^5.0.0"
711-
make-dir "^3.1.0"
712-
node-fetch "^2.6.7"
713-
nopt "^5.0.0"
714-
npmlog "^5.0.1"
715-
rimraf "^3.0.2"
716-
semver "^7.3.5"
717-
tar "^6.1.11"
718-
719704
"@microsoft/tsdoc@^0.14.2":
720705
version "0.14.2"
721706
resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz#c3ec604a0b54b9a9b87e9735dfc59e1a5da6a5fb"
@@ -1789,14 +1774,6 @@ archy@^1.0.0:
17891774
resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40"
17901775
integrity sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==
17911776

1792-
are-we-there-yet@^2.0.0:
1793-
version "2.0.0"
1794-
resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c"
1795-
integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==
1796-
dependencies:
1797-
delegates "^1.0.0"
1798-
readable-stream "^3.6.0"
1799-
18001777
are-we-there-yet@^3.0.0:
18011778
version "3.0.1"
18021779
resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz#679df222b278c64f2cdba1175cdc00b0d96164bd"
@@ -2062,6 +2039,13 @@ binary-extensions@^2.0.0:
20622039
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
20632040
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
20642041

2042+
bindings@^1.5.0:
2043+
version "1.5.0"
2044+
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df"
2045+
integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
2046+
dependencies:
2047+
file-uri-to-path "1.0.0"
2048+
20652049
bl@^4.0.3, bl@^4.1.0:
20662050
version "4.1.0"
20672051
resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a"
@@ -2604,7 +2588,7 @@ color-string@^1.6.0:
26042588
color-name "^1.0.0"
26052589
simple-swizzle "^0.2.2"
26062590

2607-
color-support@^1.1.2, color-support@^1.1.3:
2591+
color-support@^1.1.3:
26082592
version "1.1.3"
26092593
resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2"
26102594
integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==
@@ -2712,7 +2696,7 @@ consola@^2.15.0:
27122696
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
27132697
integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==
27142698

2715-
console-control-strings@^1.0.0, console-control-strings@^1.1.0:
2699+
console-control-strings@^1.1.0:
27162700
version "1.1.0"
27172701
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
27182702
integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==
@@ -3851,6 +3835,11 @@ file-type@^16.5.4:
38513835
strtok3 "^6.2.4"
38523836
token-types "^4.1.1"
38533837

3838+
3839+
version "1.0.0"
3840+
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
3841+
integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==
3842+
38543843
fill-range@^4.0.0:
38553844
version "4.0.0"
38563845
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7"
@@ -4104,21 +4093,6 @@ functions-have-names@^1.2.2, functions-have-names@^1.2.3:
41044093
resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834"
41054094
integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==
41064095

4107-
gauge@^3.0.0:
4108-
version "3.0.2"
4109-
resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395"
4110-
integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==
4111-
dependencies:
4112-
aproba "^1.0.3 || ^2.0.0"
4113-
color-support "^1.1.2"
4114-
console-control-strings "^1.0.0"
4115-
has-unicode "^2.0.1"
4116-
object-assign "^4.1.1"
4117-
signal-exit "^3.0.0"
4118-
string-width "^4.2.3"
4119-
strip-ansi "^6.0.1"
4120-
wide-align "^1.1.2"
4121-
41224096
gauge@^4.0.3:
41234097
version "4.0.4"
41244098
resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce"
@@ -5860,7 +5834,7 @@ [email protected]:
58605834
dependencies:
58615835
"@jridgewell/sourcemap-codec" "^1.4.13"
58625836

5863-
make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0:
5837+
make-dir@^3.0.0, make-dir@^3.0.2:
58645838
version "3.1.0"
58655839
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f"
58665840
integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==
@@ -6334,11 +6308,16 @@ node-abort-controller@^3.0.1:
63346308
resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.1.1.tgz#a94377e964a9a37ac3976d848cb5c765833b8548"
63356309
integrity sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==
63366310

6337-
node-addon-api@^4.2.0, node-addon-api@^4.3.0:
6311+
node-addon-api@^4.3.0:
63386312
version "4.3.0"
63396313
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-4.3.0.tgz#52a1a0b475193e0928e98e0426a0d1254782b77f"
63406314
integrity sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==
63416315

6316+
node-addon-api@^7.0.0:
6317+
version "7.1.0"
6318+
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.0.tgz#71f609369379c08e251c558527a107107b5e0fdb"
6319+
integrity sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==
6320+
63426321
node-cache@^5.1.2:
63436322
version "5.1.2"
63446323
resolved "https://registry.yarnpkg.com/node-cache/-/node-cache-5.1.2.tgz#f264dc2ccad0a780e76253a694e9fd0ed19c398d"
@@ -6472,16 +6451,6 @@ npm-run-path@^4.0.0:
64726451
dependencies:
64736452
path-key "^3.0.0"
64746453

6475-
npmlog@^5.0.1:
6476-
version "5.0.1"
6477-
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0"
6478-
integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==
6479-
dependencies:
6480-
are-we-there-yet "^2.0.0"
6481-
console-control-strings "^1.1.0"
6482-
gauge "^3.0.0"
6483-
set-blocking "^2.0.0"
6484-
64856454
npmlog@^6.0.0:
64866455
version "6.0.2"
64876456
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-6.0.2.tgz#c8166017a42f2dea92d6453168dd865186a70830"
@@ -6975,6 +6944,24 @@ prebuild-install@^7.0.1:
69756944
tar-fs "^2.0.0"
69766945
tunnel-agent "^0.6.0"
69776946

6947+
prebuild-install@^7.1.1:
6948+
version "7.1.2"
6949+
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.2.tgz#a5fd9986f5a6251fbc47e1e5c65de71e68c0a056"
6950+
integrity sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==
6951+
dependencies:
6952+
detect-libc "^2.0.0"
6953+
expand-template "^2.0.3"
6954+
github-from-package "0.0.0"
6955+
minimist "^1.2.3"
6956+
mkdirp-classic "^0.5.3"
6957+
napi-build-utils "^1.0.1"
6958+
node-abi "^3.3.0"
6959+
pump "^3.0.0"
6960+
rc "^1.2.7"
6961+
simple-get "^4.0.0"
6962+
tar-fs "^2.0.0"
6963+
tunnel-agent "^0.6.0"
6964+
69786965
prelude-ls@^1.2.1:
69796966
version "1.2.1"
69806967
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
@@ -7916,13 +7903,14 @@ sprintf-js@~1.0.2:
79167903
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
79177904
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
79187905

7919-
7920-
version "5.1.6"
7921-
resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-5.1.6.tgz#1d4fbc90fe4fbd51e952e0a90fd8f6c2b9098e97"
7922-
integrity sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==
7906+
7907+
version "5.1.7"
7908+
resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-5.1.7.tgz#59ca1053c1ab38647396586edad019b1551041b7"
7909+
integrity sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==
79237910
dependencies:
7924-
"@mapbox/node-pre-gyp" "^1.0.0"
7925-
node-addon-api "^4.2.0"
7911+
bindings "^1.5.0"
7912+
node-addon-api "^7.0.0"
7913+
prebuild-install "^7.1.1"
79267914
tar "^6.1.11"
79277915
optionalDependencies:
79287916
node-gyp "8.x"
@@ -9053,7 +9041,7 @@ [email protected]:
90539041
dependencies:
90549042
string-width "^1.0.2 || 2"
90559043

9056-
wide-align@^1.1.2, wide-align@^1.1.5:
9044+
wide-align@^1.1.5:
90579045
version "1.1.5"
90589046
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3"
90599047
integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==

redisinsight/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
"email": "[email protected]",
1212
"url": "https://redis.com/redis-enterprise/redis-insight"
1313
},
14-
"scripts": {},
14+
"scripts": {
15+
"postinstall": "npx patch-package"
16+
},
1517
"resolutions": {
1618
"**/semver": "^7.5.2"
1719
},
1820
"dependencies": {
1921
"keytar": "^7.9.0",
20-
"sqlite3": "5.1.6",
22+
"sqlite3": "5.1.7",
2123
"tunnel-ssh": "^5.1.2"
2224
}
2325
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/node_modules/sqlite3/package.json b/node_modules/sqlite3/package.json
2+
index ab413ff..a54b830 100644
3+
--- a/node_modules/sqlite3/package.json
4+
+++ b/node_modules/sqlite3/package.json
5+
@@ -9,7 +9,6 @@
6+
},
7+
"binary": {
8+
"napi_versions": [
9+
- 3,
10+
6
11+
]
12+
},

0 commit comments

Comments
 (0)