claude-code-termux 1.0.12 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-termux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Claude Code CLI with Termux/Android compatibility fixes - a wrapper that patches issues with Sharp, ripgrep, and path resolution on ARM64 Android",
|
|
5
5
|
"author": "Jimoh Ovbiagele <findingjimoh@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
package/src/patches/apply-all.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Suppress the "migrate to native installer" UI messages in Termux.
|
|
5
|
+
*
|
|
6
|
+
* The native installer doesn't support Android/Termux, so these prompts
|
|
7
|
+
* are not actionable and just add noise. This patch sets environment
|
|
8
|
+
* variables that Claude Code checks to skip migration-related UI.
|
|
9
|
+
*/
|
|
10
|
+
function apply() {
|
|
11
|
+
// Set environment variable that suppresses the npm deprecation warning banner
|
|
12
|
+
// Found in CLI v2.1.27: "X6(process.env.DISABLE_INSTALLATION_CHECKS)"
|
|
13
|
+
// This controls the warning: "Claude Code has switched from npm to native installer..."
|
|
14
|
+
process.env.DISABLE_INSTALLATION_CHECKS = '1';
|
|
15
|
+
|
|
16
|
+
// Also disable auto-migration behavior (separate from the warning)
|
|
17
|
+
process.env.DISABLE_AUTO_MIGRATE_TO_NATIVE = '1';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = { apply };
|