From 858b6742e8981ce6c5d9468555d26a6c71d8a6cc Mon Sep 17 00:00:00 2001 From: Hernan Javier Ardila Sanchez Date: Mon, 8 Jun 2026 23:44:13 +0200 Subject: [PATCH] fix(publish): remove onnxruntime CUDA binary from tarball to avoid 413 (#3437) Integrated into release/v3.8.17 --- scripts/build/pack-artifact-policy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build/pack-artifact-policy.ts b/scripts/build/pack-artifact-policy.ts index 3a89534572..11939e660e 100644 --- a/scripts/build/pack-artifact-policy.ts +++ b/scripts/build/pack-artifact-policy.ts @@ -25,6 +25,10 @@ const STAGING_FORBIDDEN_FILES = ["audit-report.json", "package-lock.json"]; export const APP_STAGING_REMOVAL_PATHS: string[] = [ ...STAGING_FORBIDDEN_DIRECTORIES, ...STAGING_FORBIDDEN_FILES, + // onnxruntime CUDA provider binary (~316 MB) inflates the npm tarball + // past the registry 413 limit for npm.org. It's only needed on systems + // with a CUDA GPU — users install CUDA providers separately. + "node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime_providers_cuda.so", ]; export const APP_STAGING_ALLOWED_EXACT_PATHS: string[] = [