From 1991e23c9d6e1b13fbc6c29a1d7e89a893a3c187 Mon Sep 17 00:00:00 2001 From: sauravniraula Date: Wed, 14 May 2025 03:01:06 +0545 Subject: [PATCH] Removes: hf_xet to reduce bundle size --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 92205428..0613c7ab 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,12 @@ }, "scripts": { "dev": "rm -rf app_dist && tsc && electron .", - "setup:env": "npm install && cd servers/fastapi && poetry env remove --all && poetry install && cd ../../servers/nextjs && npm install", + "setup:env": "npm install && cd servers/fastapi && poetry env remove --all && poetry install && pip remove hf_xet && cd ../../servers/nextjs && npm install", "install:pyinstaller": "cd servers/fastapi && .venv/bin/pip install pyinstaller", "build:ts": "rm -rf app_dist && tsc", "build:css": "tailwindcss -i ./resources/ui/assets/css/tailwind.import.css -o ./resources/ui/assets/css/tailwind.css --watch", "build:nextjs": "rm -rf resources/nextjs && cd servers/nextjs && npm run build && cp -r out ../../resources/nextjs", - "build:fastapi": "rm -rf resources/fastapi && cd servers/fastapi && .venv/bin/pyinstaller --distpath ../../resources server.spec && cd ../../resources/fastapi/_internal && rm -rf hf_xet", + "build:fastapi": "rm -rf resources/fastapi && cd servers/fastapi && .venv/bin/pyinstaller --distpath ../../resources server.spec", "build:electron": "rm -rf app_dist && tsc && node build.js", "build:all": "npm run clean:build && npm run setup:env && npm run build:ts && npm run install:pyinstaller && npm run build:nextjs && npm run build:fastapi && npm run build:electron", "clean:build": "rm -rf resources/nextjs && rm -rf resources/fastapi && rm -rf app_dist"