Skip to content

Commit aecf4c8

Browse files
committed
fix: keep pdfjs-dist and typescript for desktop build in cleanup script
1 parent 0d55eac commit aecf4c8

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ public-hoist-pattern[]=*react-native*
77
public-hoist-pattern[]=*whatwg-fetch*
88
public-hoist-pattern[]=*@babel*
99
public-hoist-pattern[]=*metro*
10+
public-hoist-pattern[]=*pdfjs*

packages/app-expo/scripts/cleanup-unused-modules.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ MONOREPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
1414
echo " Monorepo root: $MONOREPO_ROOT"
1515

1616
# Define the modules to remove (these are brought in by @huggingface/transformers but not needed on mobile)
17+
# Note: Only remove modules that are NOT needed by desktop build
1718
UNUSED_MODULES=(
1819
"onnxruntime-node"
1920
"onnxruntime-web"
2021
"@pagefind"
21-
"pdfjs-dist"
22-
"typescript"
23-
"esbuild"
24-
"@biomejs"
2522
"react-devtools-core"
2623
)
2724

0 commit comments

Comments
 (0)