aboutsummaryrefslogtreecommitdiff
path: root/extra/nodejs/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nodejs/build')
-rwxr-xr-xextra/nodejs/build6
1 files changed, 6 insertions, 0 deletions
diff --git a/extra/nodejs/build b/extra/nodejs/build
index 089684a9..10458be2 100755
--- a/extra/nodejs/build
+++ b/extra/nodejs/build
@@ -13,3 +13,9 @@ clsed '/^subninja.*openssl-fipsmodule/d' out/Release/build.ninja
ninja -C out/Release
tools/install.py install "$1" /usr
+
+# Change name of file that has a name longer than the value allowed by the ustar
+# format.
+cd "$1/usr/lib/node_modules/corepack/dist"
+mv vendors-_yarn*.js vendors-_yarn_berry_cache.js
+clsed '/yarn_berry/s/vendors-[^"]*/vendors-_yarn_berry_cache/' corepack.js