mirror of
https://github.com/termux/termux-packages
synced 2024-06-16 15:07:22 +00:00
fix(main/nodejs{,-lts}): patch npm to not check for updates
This should hopefully silence people complaining of unable to update but npm is showing an update being available. Closes #13293
This commit is contained in:
parent
1a16585c90
commit
2a63b01605
|
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environme
|
|||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Yaksh Bariya <thunder-coding@termux.dev>"
|
||||
TERMUX_PKG_VERSION=20.11.1
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_SHA256=77813edbf3f7f16d2d35d3353443dee4e61d5ee84d9e3138c7538a3c0ca5209e
|
||||
# Note that we do not use a shared libuv to avoid an issue with the Android
|
||||
|
|
15
packages/nodejs-lts/deps-npm-lib-npm.js.patch
Normal file
15
packages/nodejs-lts/deps-npm-lib-npm.js.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- ./deps/npm/lib/npm.js.orig 2024-02-21 20:21:11.251716444 +0530
|
||||
+++ ./deps/npm/lib/npm.js 2024-02-21 20:25:09.207937428 +0530
|
||||
@@ -113,12 +113,6 @@
|
||||
|
||||
const timeEnd = this.time(`command:${cmd}`)
|
||||
|
||||
- // this is async but we dont await it, since its ok if it doesnt
|
||||
- // finish before the command finishes running. it uses command and argv
|
||||
- // so it must be initiated here, after the command name is set
|
||||
- // eslint-disable-next-line promise/catch-or-return
|
||||
- updateNotifier(this).then((msg) => (this.updateNotification = msg))
|
||||
-
|
||||
// Options are prefixed by a hyphen-minus (-, \u2d).
|
||||
// Other dash-type chars look similar but are invalid.
|
||||
if (!this.#warnedNonDashArg) {
|
|
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environme
|
|||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Yaksh Bariya <thunder-coding@termux.dev>"
|
||||
TERMUX_PKG_VERSION=21.6.2
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_SHA256=191294d445d1e6800359acc8174529b1e18e102147dc5f596030d3dce96931e5
|
||||
# thunder-coding: don't try to autoupdate nodejs, that thing takes 2 whole hours to build for a single arch, and requires a lot of patch updates everytime. Also I run tests everytime I update it to ensure least bugs
|
||||
|
|
15
packages/nodejs/deps-npm-lib-npm.js.patch
Normal file
15
packages/nodejs/deps-npm-lib-npm.js.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- ./deps/npm/lib/npm.js.orig 2024-02-21 20:21:11.251716444 +0530
|
||||
+++ ./deps/npm/lib/npm.js 2024-02-21 20:25:09.207937428 +0530
|
||||
@@ -113,12 +113,6 @@
|
||||
|
||||
const timeEnd = this.time(`command:${cmd}`)
|
||||
|
||||
- // this is async but we dont await it, since its ok if it doesnt
|
||||
- // finish before the command finishes running. it uses command and argv
|
||||
- // so it must be initiated here, after the command name is set
|
||||
- // eslint-disable-next-line promise/catch-or-return
|
||||
- updateNotifier(this).then((msg) => (this.updateNotification = msg))
|
||||
-
|
||||
// Options are prefixed by a hyphen-minus (-, \u2d).
|
||||
// Other dash-type chars look similar but are invalid.
|
||||
if (!this.#warnedNonDashArg) {
|
Loading…
Reference in New Issue
Block a user