Skip to content

Commit 592c147

Browse files
authored
chore: fix yarn install warnings related to vitest (#6232)
* Restore yarn warnings lint script to previous version * Add vite package resolution * Update vite-plugin-node-polyfills package to 0.18.0
1 parent 6f4a9d6 commit 592c147

File tree

3 files changed

+17
-31
lines changed

3 files changed

+17
-31
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"ts-node": "^10.9.1",
9898
"typescript": "^5.2.2",
9999
"typescript-docs-verifier": "^2.5.0",
100-
"vite-plugin-node-polyfills": "^0.17.0",
100+
"vite-plugin-node-polyfills": "^0.18.0",
101101
"vite-plugin-top-level-await": "^1.3.1",
102102
"vitest": "^1.0.2",
103103
"vitest-when": "^0.3.0",
@@ -108,6 +108,7 @@
108108
"resolutions": {
109109
"dns-over-http-resolver": "^2.1.1",
110110
"chai": "^4.3.10",
111-
"loupe": "^2.3.6"
111+
"loupe": "^2.3.6",
112+
"vite": "^5.0.0"
112113
}
113114
}

scripts/assert_no_yarn_warnings.sh

+1-14
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,8 @@ OUTPUT=$(yarn install --check-files 2>&1)
55

66
echo $OUTPUT
77

8-
MATCH=("warning")
9-
10-
# There are few yarn warnings we can't find a fix for. Excluding those.
11-
# TODO: Keep checking occasionally if the warnings are fixed upstream.
12-
EXCLUDE=("Pattern \[\".*\"\] is trying to unpack in the same destination")
13-
ARGS=()
14-
15-
for m in "${MATCH[@]}"; do ARGS+=(-e "$m"); done
16-
for e in "${EXCLUDE[@]}"; do ARGS+=(--exclude "$e"); done
17-
COMMAND="grep -qi ${ARGS[@]}"
18-
19-
echo "Running $COMMAND"
20-
218
# grep the output for 'warning'
22-
if echo "$OUTPUT" | ${COMMAND}; then
9+
if echo "$OUTPUT" | grep -qi 'warning'; then
2310
echo "There were warnings in yarn install --check-files"
2411
exit 1
2512
else

yarn.lock

+13-15
Original file line numberDiff line numberDiff line change
@@ -4943,15 +4943,6 @@ buffer-indexof-polyfill@~1.0.0:
49434943
resolved "https://registry.yarnpkg.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz#d2732135c5999c64b277fcf9b1abe3498254729c"
49444944
integrity sha512-I7wzHwA3t1/lwXQh+A5PbNvJxgfo5r3xulgpYDB5zckTu/Z9oUK9biouBKQUjEqzaz3HnAT6TYoovmE+GqSf7A==
49454945

4946-
"buffer-polyfill@npm:buffer@^6.0.3", buffer@^6.0.3:
4947-
name buffer-polyfill
4948-
version "6.0.3"
4949-
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
4950-
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
4951-
dependencies:
4952-
base64-js "^1.3.1"
4953-
ieee754 "^1.2.1"
4954-
49554946
buffer-xor@^1.0.3:
49564947
version "1.0.3"
49574948
resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz"
@@ -4981,6 +4972,15 @@ buffer@^5.2.1, buffer@^5.4.3, buffer@^5.5.0, buffer@^5.7.1:
49814972
base64-js "^1.3.1"
49824973
ieee754 "^1.1.13"
49834974

4975+
buffer@^6.0.3:
4976+
name buffer-polyfill
4977+
version "6.0.3"
4978+
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
4979+
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
4980+
dependencies:
4981+
base64-js "^1.3.1"
4982+
ieee754 "^1.2.1"
4983+
49844984
buffers@~0.1.1:
49854985
version "0.1.1"
49864986
resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb"
@@ -15191,15 +15191,13 @@ vite-node@1.0.2:
1519115191
picocolors "^1.0.0"
1519215192
vite "^5.0.0"
1519315193

15194-
vite-plugin-node-polyfills@^0.17.0:
15195-
version "0.17.0"
15196-
resolved "https://registry.yarnpkg.com/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.17.0.tgz#1044a4955174ddaeedbc3679b179e1efac9da006"
15197-
integrity sha512-iPmPn7376e5u6QvoTSJa16hf5Q0DFwHFXJk2uYpsNlmI3JdPms7hWyh55o+OysJ5jo9J5XPhLC9sMOYifwFd1w==
15194+
vite-plugin-node-polyfills@^0.18.0:
15195+
version "0.18.0"
15196+
resolved "https://registry.yarnpkg.com/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.18.0.tgz#2ad147960f7a35dbbb1c9f9c1ae928bd0f438c1e"
15197+
integrity sha512-zkdLD3gpOhLFyxYRMJ5apk0RcODhomuS3XQgExowiX8naoc251JfcP3toqnfDlMdF0xuPYahre/H38xAcq8ApA==
1519815198
dependencies:
1519915199
"@rollup/plugin-inject" "^5.0.5"
15200-
buffer-polyfill "npm:buffer@^6.0.3"
1520115200
node-stdlib-browser "^1.2.0"
15202-
process "^0.11.10"
1520315201

1520415202
vite-plugin-top-level-await@^1.3.1:
1520515203
version "1.3.1"

0 commit comments

Comments
 (0)