From d36dee5ac34d35283c0dda6fe2617e8f231fa22e Mon Sep 17 00:00:00 2001 From: Hirokazu MORIKAWA Date: Mon, 8 May 2023 13:47:45 +0900 Subject: [PATCH] treewide: Delete obsolete npm options --- node-actions-on-google/Makefile | 4 +- node-alexa-app/Makefile | 4 +- node-arduino-firmata/Makefile | 4 +- node-argon2/Makefile | 4 +- node-ask-sdk/Makefile | 4 +- node-authenticate-pam/Makefile | 4 +- node-autobahn/Makefile | 4 +- node-aws-crt/Makefile | 3 - node-aws-iot-device-sdk-v2/Makefile | 4 +- node-aws-iot-device-sdk/Makefile | 4 +- node-aws-sdk/Makefile | 4 +- node-azure-event-hubs/Makefile | 4 +- node-azure-iot-device-amqp/Makefile | 4 +- node-azure-iot-device-http/Makefile | 4 +- node-azure-iot-device-mqtt/Makefile | 4 +- node-azure-iot-device/Makefile | 4 +- node-azure-iothub/Makefile | 4 +- node-bcrypt/Makefile | 4 +- node-bignum/Makefile | 4 +- node-binaryjs/Makefile | 4 +- node-bleacon/Makefile | 4 +- node-bleno/Makefile | 4 +- node-bluetooth-hci-socket/Makefile | 4 +- node-browserify/Makefile | 8 +- node-bufferutil/Makefile | 4 +- node-classic-level/Makefile | 4 +- node-clean-modules/Makefile | 8 +- node-coap/Makefile | 4 +- node-cpx/Makefile | 8 +- node-cylon-firmata/Makefile | 4 +- node-cylon-gpio/Makefile | 4 +- node-cylon-i2c/Makefile | 4 +- node-cylon/Makefile | 4 +- node-deasync-promise/Makefile | 4 +- node-deasync/Makefile | 4 +- node-eddystone-beacon/Makefile | 4 +- node-ejdb2_node/Makefile | 4 +- node-enocean-utils/Makefile | 4 +- node-epoll/Makefile | 4 +- node-exorcist/Makefile | 8 +- node-expat/Makefile | 4 +- node-express/Makefile | 4 +- node-ffi-napi/Makefile | 4 +- node-firmata/Makefile | 4 +- node-forever/Makefile | 4 +- node-fuse-bindings/Makefile | 6 +- .../patches/001-update_depends.patch | 17 ++++ .../patches/999-support_v20.patch | 11 +++ node-gulp/Makefile | 8 +- node-gyp/Makefile | 8 +- node-hap-nodejs/Makefile | 8 +- node-hashmap/Makefile | 4 +- node-hid-stream/Makefile | 4 +- node-hid/Makefile | 4 +- node-homebridge-camera-ffmpeg/Makefile | 4 +- node-homebridge-cmd4/Makefile | 4 +- node-homebridge-config-ui-x/Makefile | 10 +-- node-homebridge-z2m/Makefile | 4 +- node-homebridge/Makefile | 8 +- node-homekit2mqtt/Makefile | 4 +- node-i2c-bus/Makefile | 4 +- node-inspect/Makefile | 4 +- node-javascript-obfuscator/Makefile | 8 +- node-johnny-five/Makefile | 4 +- node-jsonfile/Makefile | 4 +- node-lambda/Makefile | 4 +- node-level/Makefile | 4 +- node-leveldown/Makefile | 4 +- node-levelup/Makefile | 4 +- node-logfmt/Makefile | 4 +- node-lwm2m-node-lib/Makefile | 4 +- node-mdns/Makefile | 4 +- node-megahash/Makefile | 4 +- node-mocha/Makefile | 8 +- node-modbus-serial/Makefile | 4 +- node-modclean/Makefile | 8 +- node-mqtt/Makefile | 4 +- node-nconf/Makefile | 4 +- node-net-ping/Makefile | 10 +-- .../patches/000-remove_depends.patch | 10 +++ node-noble-device/Makefile | 4 +- node-noble/Makefile | 4 +- node-npm-check-updates/Makefile | 4 +- node-onoff/Makefile | 4 +- node-openzwave-shared/Makefile | 6 +- .../patches/001-nan_update.patch | 11 +++ ...pport.patch => 999-node_v20_support.patch} | 2 +- node-pi-spi/Makefile | 4 +- node-pm2/Makefile | 4 +- node-pty-prebuilt-multiarch/Makefile | 7 +- node-pty/Makefile | 7 +- node-raw-socket/Makefile | 81 +++++++++++++++++++ node-raw-socket/patches/001-nan_update.patch | 11 +++ node-red-contrib-gpio/Makefile | 4 +- node-red-contrib-homekit-bridged/Makefile | 4 +- node-red-contrib-modbus/Makefile | 4 +- node-red-dashboard/Makefile | 4 +- node-red-node-arduino/Makefile | 4 +- node-red-node-discovery/Makefile | 4 +- node-red-node-serialport/Makefile | 4 +- node-red-node-sqlite/Makefile | 4 +- node-red/Makefile | 10 +-- node-rimraf/Makefile | 8 +- node-rpi-gpio/Makefile | 4 +- node-rpio/Makefile | 4 +- node-serialport-bindings-cpp/Makefile | 4 +- node-serialport-bindings/Makefile | 4 +- node-serialport-list/Makefile | 4 +- node-serialport/Makefile | 4 +- node-simple-xmpp/Makefile | 4 +- node-sleep/Makefile | 4 +- node-socket.io-client/Makefile | 4 +- node-socket.io/Makefile | 4 +- node-spi-device/Makefile | 4 +- node-sqlite3/Makefile | 4 +- node-static/Makefile | 4 +- node-statvfs/Makefile | 4 +- node-system-sleep/Makefile | 4 +- node-twilio/Makefile | 4 +- node-typescript/Makefile | 8 +- node-ubus/Makefile | 4 +- node-uglify-js/Makefile | 8 +- node-usb/Makefile | 7 +- node-utf-8-validate/Makefile | 4 +- node-websocket/Makefile | 4 +- node-ws/Makefile | 4 +- node-yarn/Makefile | 8 +- node-zigbee2mqtt/Makefile | 12 ++- node-zwave-js/Makefile | 8 +- ts-node/Makefile | 4 +- 130 files changed, 300 insertions(+), 437 deletions(-) create mode 100644 node-fuse-bindings/patches/001-update_depends.patch create mode 100644 node-fuse-bindings/patches/999-support_v20.patch create mode 100644 node-net-ping/patches/000-remove_depends.patch create mode 100644 node-openzwave-shared/patches/001-nan_update.patch rename node-openzwave-shared/patches/{999-node_v16_support.patch => 999-node_v20_support.patch} (94%) create mode 100644 node-raw-socket/Makefile create mode 100644 node-raw-socket/patches/001-nan_update.patch diff --git a/node-actions-on-google/Makefile b/node-actions-on-google/Makefile index 73080dc7a..1ba4d2659 100644 --- a/node-actions-on-google/Makefile +++ b/node-actions-on-google/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-alexa-app/Makefile b/node-alexa-app/Makefile index 95e559782..c045dc9ab 100644 --- a/node-alexa-app/Makefile +++ b/node-alexa-app/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-arduino-firmata/Makefile b/node-arduino-firmata/Makefile index 31c9fd1e1..6a431802c 100644 --- a/node-arduino-firmata/Makefile +++ b/node-arduino-firmata/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-argon2/Makefile b/node-argon2/Makefile index 4e929cb12..10f56aefd 100644 --- a/node-argon2/Makefile +++ b/node-argon2/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-ask-sdk/Makefile b/node-ask-sdk/Makefile index 851838e61..d4929f553 100644 --- a/node-ask-sdk/Makefile +++ b/node-ask-sdk/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-authenticate-pam/Makefile b/node-authenticate-pam/Makefile index 8f1d77bce..4c9b5be16 100644 --- a/node-authenticate-pam/Makefile +++ b/node-authenticate-pam/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-autobahn/Makefile b/node-autobahn/Makefile index f7184a47f..67e072cd2 100644 --- a/node-autobahn/Makefile +++ b/node-autobahn/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-aws-crt/Makefile b/node-aws-crt/Makefile index 1477e0768..2edfe4de3 100644 --- a/node-aws-crt/Makefile +++ b/node-aws-crt/Makefile @@ -60,14 +60,12 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ npm install --prefer-offline --no-audit --no-save --no-package-lock --ignore-scripts cd $(PKG_BUILD_DIR); \ $(MAKE_VARS) \ $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ CMAKE_SYSTEM_NAME=Linux \ CMAKE_SYSTEM_VERSION=1 \ CMAKE_SYSTEM_PROCESSOR=$(ARCH) \ @@ -105,7 +103,6 @@ define Build/Compile CROSS_COMPILE="$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-" \ TARGET_CROSS="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)" \ npm run install --no-save --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true diff --git a/node-aws-iot-device-sdk-v2/Makefile b/node-aws-iot-device-sdk-v2/Makefile index 1e6065c2e..e13463b69 100644 --- a/node-aws-iot-device-sdk-v2/Makefile +++ b/node-aws-iot-device-sdk-v2/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-aws-iot-device-sdk/Makefile b/node-aws-iot-device-sdk/Makefile index a95923b77..4477f16b3 100644 --- a/node-aws-iot-device-sdk/Makefile +++ b/node-aws-iot-device-sdk/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-aws-sdk/Makefile b/node-aws-sdk/Makefile index 94cff49cb..c1323860a 100644 --- a/node-aws-sdk/Makefile +++ b/node-aws-sdk/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-azure-event-hubs/Makefile b/node-azure-event-hubs/Makefile index af30508ef..4d9968975 100644 --- a/node-azure-event-hubs/Makefile +++ b/node-azure-event-hubs/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-azure-iot-device-amqp/Makefile b/node-azure-iot-device-amqp/Makefile index e51efeea7..2ccf58d04 100644 --- a/node-azure-iot-device-amqp/Makefile +++ b/node-azure-iot-device-amqp/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-azure-iot-device-http/Makefile b/node-azure-iot-device-http/Makefile index 4620a2bb2..711a608d0 100644 --- a/node-azure-iot-device-http/Makefile +++ b/node-azure-iot-device-http/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-azure-iot-device-mqtt/Makefile b/node-azure-iot-device-mqtt/Makefile index c366c836e..281688fb4 100644 --- a/node-azure-iot-device-mqtt/Makefile +++ b/node-azure-iot-device-mqtt/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-azure-iot-device/Makefile b/node-azure-iot-device/Makefile index 84f311d42..25b874b62 100644 --- a/node-azure-iot-device/Makefile +++ b/node-azure-iot-device/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-azure-iothub/Makefile b/node-azure-iothub/Makefile index 9bce133cc..9fa560476 100644 --- a/node-azure-iothub/Makefile +++ b/node-azure-iothub/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --omit=optional --no-optional - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --omit=optional --no-optional rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-bcrypt/Makefile b/node-bcrypt/Makefile index 798d9e277..cd13bec7a 100644 --- a/node-bcrypt/Makefile +++ b/node-bcrypt/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-bignum/Makefile b/node-bignum/Makefile index 3eadb3358..10b1f1cd4 100644 --- a/node-bignum/Makefile +++ b/node-bignum/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-binaryjs/Makefile b/node-binaryjs/Makefile index 6cc8fc56a..9fc154459 100644 --- a/node-binaryjs/Makefile +++ b/node-binaryjs/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-bleacon/Makefile b/node-bleacon/Makefile index c446db2e2..4f66f4fa9 100644 --- a/node-bleacon/Makefile +++ b/node-bleacon/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-bleno/Makefile b/node-bleno/Makefile index 601e99877..be7da8199 100644 --- a/node-bleno/Makefile +++ b/node-bleno/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-bluetooth-hci-socket/Makefile b/node-bluetooth-hci-socket/Makefile index 0aa0fe5e4..1b7852f5f 100644 --- a/node-bluetooth-hci-socket/Makefile +++ b/node-bluetooth-hci-socket/Makefile @@ -56,9 +56,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-browserify/Makefile b/node-browserify/Makefile index 8c0f8343a..b7db80717 100644 --- a/node-browserify/Makefile +++ b/node-browserify/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -92,9 +90,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-bufferutil/Makefile b/node-bufferutil/Makefile index bd1798b29..6302a025b 100644 --- a/node-bufferutil/Makefile +++ b/node-bufferutil/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-classic-level/Makefile b/node-classic-level/Makefile index e654fc20c..fd122fc7e 100644 --- a/node-classic-level/Makefile +++ b/node-classic-level/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-clean-modules/Makefile b/node-clean-modules/Makefile index d124c222f..ba5488236 100644 --- a/node-clean-modules/Makefile +++ b/node-clean-modules/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -90,9 +88,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-coap/Makefile b/node-coap/Makefile index 246c8b027..0c26640d9 100644 --- a/node-coap/Makefile +++ b/node-coap/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-cpx/Makefile b/node-cpx/Makefile index 073567732..68c3731eb 100644 --- a/node-cpx/Makefile +++ b/node-cpx/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -91,9 +89,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-cylon-firmata/Makefile b/node-cylon-firmata/Makefile index 2cd5da6e1..7a20b87e8 100644 --- a/node-cylon-firmata/Makefile +++ b/node-cylon-firmata/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-cylon-gpio/Makefile b/node-cylon-gpio/Makefile index 07a2912c5..1ed91f744 100644 --- a/node-cylon-gpio/Makefile +++ b/node-cylon-gpio/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-cylon-i2c/Makefile b/node-cylon-i2c/Makefile index 934706569..4342603a8 100644 --- a/node-cylon-i2c/Makefile +++ b/node-cylon-i2c/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-cylon/Makefile b/node-cylon/Makefile index a7c661fec..8244f5a2d 100644 --- a/node-cylon/Makefile +++ b/node-cylon/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-deasync-promise/Makefile b/node-deasync-promise/Makefile index 13b4b1336..18cb363d6 100644 --- a/node-deasync-promise/Makefile +++ b/node-deasync-promise/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-deasync/Makefile b/node-deasync/Makefile index 0979706cb..793e79be4 100644 --- a/node-deasync/Makefile +++ b/node-deasync/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-eddystone-beacon/Makefile b/node-eddystone-beacon/Makefile index 622766982..8d60503e4 100644 --- a/node-eddystone-beacon/Makefile +++ b/node-eddystone-beacon/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-ejdb2_node/Makefile b/node-ejdb2_node/Makefile index d3d6d5db0..d2c747ed5 100644 --- a/node-ejdb2_node/Makefile +++ b/node-ejdb2_node/Makefile @@ -60,11 +60,9 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ CMAKE_INCLUDE_PATH="$(CMINC_PATH)" \ CMAKE_LIBRARY_PATH="$(STAGING_DIR)/usr/lib:$(TOOLCHAIN_DIR)/lib" \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-enocean-utils/Makefile b/node-enocean-utils/Makefile index 31d7f8740..18e751d96 100644 --- a/node-enocean-utils/Makefile +++ b/node-enocean-utils/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-epoll/Makefile b/node-epoll/Makefile index 9605ededf..cd549d172 100644 --- a/node-epoll/Makefile +++ b/node-epoll/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-exorcist/Makefile b/node-exorcist/Makefile index 339247743..28192478d 100644 --- a/node-exorcist/Makefile +++ b/node-exorcist/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -92,9 +90,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-expat/Makefile b/node-expat/Makefile index a5cc4f668..c1470c78c 100644 --- a/node-expat/Makefile +++ b/node-expat/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-express/Makefile b/node-express/Makefile index 32d9144da..5aa3faf8e 100644 --- a/node-express/Makefile +++ b/node-express/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true diff --git a/node-ffi-napi/Makefile b/node-ffi-napi/Makefile index d0129b22e..17033c1dd 100644 --- a/node-ffi-napi/Makefile +++ b/node-ffi-napi/Makefile @@ -54,9 +54,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-firmata/Makefile b/node-firmata/Makefile index 5d5eee316..1605fdf54 100644 --- a/node-firmata/Makefile +++ b/node-firmata/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-forever/Makefile b/node-forever/Makefile index 8ba7fb540..c333aac2d 100644 --- a/node-forever/Makefile +++ b/node-forever/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-fuse-bindings/Makefile b/node-fuse-bindings/Makefile index bcfcbe746..aafb19e19 100644 --- a/node-fuse-bindings/Makefile +++ b/node-fuse-bindings/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NPM_NAME:=node-fuse-bindings PKG_NAME:=$(PKG_NPM_NAME) PKG_VERSION:=2.12.4 -PKG_RELEASE:=3 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=https://registry.npmjs.org/$(PKG_NPM_NAME)/-/ @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-fuse-bindings/patches/001-update_depends.patch b/node-fuse-bindings/patches/001-update_depends.patch new file mode 100644 index 000000000..ed113c70e --- /dev/null +++ b/node-fuse-bindings/patches/001-update_depends.patch @@ -0,0 +1,17 @@ +--- a/package.json ++++ b/package.json +@@ -15,10 +15,10 @@ + }, + "gypfile": true, + "dependencies": { +- "nan": "^2.14.0", +- "node-gyp": "^6.0.1", +- "node-gyp-build": "^4.2.0", +- "prebuild-install": "^5.3.3", ++ "nan": "^2.17.0", ++ "node-gyp": "^9.3.1", ++ "node-gyp-build": "^4.6.0", ++ "prebuild-install": "^7.1.1", + "xtend": "^4.0.2" + }, + "devDependencies": { diff --git a/node-fuse-bindings/patches/999-support_v20.patch b/node-fuse-bindings/patches/999-support_v20.patch new file mode 100644 index 000000000..489ba2ab3 --- /dev/null +++ b/node-fuse-bindings/patches/999-support_v20.patch @@ -0,0 +1,11 @@ +--- a/fuse-bindings.cc ++++ b/fuse-bindings.cc +@@ -1333,7 +1333,7 @@ NAN_METHOD(Unmount) { + + void Init(v8::Local exports) { + +- v8::Local context = exports->CreationContext(); ++ v8::Local context = exports->GetCreationContext().ToLocalChecked(); + + exports->Set(context, Nan::New("setCallback").ToLocalChecked(), Nan::New(SetCallback)->GetFunction(context).ToLocalChecked()); + exports->Set(context, Nan::New("setBuffer").ToLocalChecked(), Nan::New(SetBuffer)->GetFunction(context).ToLocalChecked()); diff --git a/node-gulp/Makefile b/node-gulp/Makefile index 705eb0313..ba1cdd908 100644 --- a/node-gulp/Makefile +++ b/node-gulp/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -88,9 +86,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-gyp/Makefile b/node-gyp/Makefile index 165bab605..607301ce9 100644 --- a/node-gyp/Makefile +++ b/node-gyp/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -90,9 +88,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-hap-nodejs/Makefile b/node-hap-nodejs/Makefile index 923ea8014..af6ab217f 100644 --- a/node-hap-nodejs/Makefile +++ b/node-hap-nodejs/Makefile @@ -52,14 +52,12 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --legacy-peer-deps - rm -f $(PKG_BUILD_DIR)/node_modules/@homebridge/dbus-native/node_modules/@homebridge/put/test/c/ftoi - rm -f $(PKG_BUILD_DIR)/node_modules/@homebridge/dbus-native/node_modules/@homebridge/put/test/c/itof - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true + rm -f $(PKG_BUILD_DIR)/node_modules/@homebridge/dbus-native/node_modules/@homebridge/put/test/c/itof + rm -f $(PKG_BUILD_DIR)/node_modules/@homebridge/dbus-native/node_modules/@homebridge/put/test/c/ftoi endef define Package/node-hap-nodejs/install diff --git a/node-hashmap/Makefile b/node-hashmap/Makefile index 172a5d234..0c2a36a6e 100644 --- a/node-hashmap/Makefile +++ b/node-hashmap/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-hid-stream/Makefile b/node-hid-stream/Makefile index 4f1cf1473..95760b3fe 100644 --- a/node-hid-stream/Makefile +++ b/node-hid-stream/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-hid/Makefile b/node-hid/Makefile index 3fe76fd82..2ea17ff3d 100644 --- a/node-hid/Makefile +++ b/node-hid/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-homebridge-camera-ffmpeg/Makefile b/node-homebridge-camera-ffmpeg/Makefile index 47f3cad48..14d584516 100644 --- a/node-homebridge-camera-ffmpeg/Makefile +++ b/node-homebridge-camera-ffmpeg/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-homebridge-cmd4/Makefile b/node-homebridge-cmd4/Makefile index 4c4edc130..e6028b11f 100644 --- a/node-homebridge-cmd4/Makefile +++ b/node-homebridge-cmd4/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-homebridge-config-ui-x/Makefile b/node-homebridge-config-ui-x/Makefile index d20f2b35b..4cf1f3b26 100644 --- a/node-homebridge-config-ui-x/Makefile +++ b/node-homebridge-config-ui-x/Makefile @@ -76,18 +76,16 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --prefer-dedupe + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --prefer-dedupe + rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) + rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json + find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true rm -rf $(PKG_BUILD_DIR)/node_modules/fastify/node_modules/light-my-request/node_modules/ajv/lib rm -rf $(PKG_BUILD_DIR)/node_modules/@nestjs/platform-fastify/node_modules/light-my-request/node_modules/ajv/lib rm -rf $(PKG_BUILD_DIR)/node_modules/node-schedule/node_modules/moment/min rm -rf $(PKG_BUILD_DIR)/node_modules/node-schedule/node_modules/moment/src rm -rf $(PKG_BUILD_DIR)/node_modules/node-schedule/node_modules/moment/locale clean-modules -y -D $(PKG_BUILD_DIR)/node_modules --exclude "**/*.png" "**/example/" "**/examples/" - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) - rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) - rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json - find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true endef define Package/node-homebridge-config-ui-x/install diff --git a/node-homebridge-z2m/Makefile b/node-homebridge-z2m/Makefile index ba7d1d03e..d9914591c 100644 --- a/node-homebridge-z2m/Makefile +++ b/node-homebridge-z2m/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-homebridge/Makefile b/node-homebridge/Makefile index 827e0792a..d40ad33d5 100644 --- a/node-homebridge/Makefile +++ b/node-homebridge/Makefile @@ -53,14 +53,12 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -f $(PKG_BUILD_DIR)/node_modules/hap-nodejs/node_modules/@homebridge/put/test/c/ftoi - rm -f $(PKG_BUILD_DIR)/node_modules/hap-nodejs/node_modules/@homebridge/put/test/c/itof - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true + rm -f $(PKG_BUILD_DIR)/node_modules/hap-nodejs/node_modules/@homebridge/put/test/c/ftoi + rm -f $(PKG_BUILD_DIR)/node_modules/hap-nodejs/node_modules/@homebridge/put/test/c/itof endef define Package/node-homebridge/install diff --git a/node-homekit2mqtt/Makefile b/node-homekit2mqtt/Makefile index f319a0a46..36cd6d1c6 100644 --- a/node-homekit2mqtt/Makefile +++ b/node-homekit2mqtt/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-i2c-bus/Makefile b/node-i2c-bus/Makefile index f2c8f7142..b05a9c190 100644 --- a/node-i2c-bus/Makefile +++ b/node-i2c-bus/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-inspect/Makefile b/node-inspect/Makefile index 123d3b249..d347409c6 100644 --- a/node-inspect/Makefile +++ b/node-inspect/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-javascript-obfuscator/Makefile b/node-javascript-obfuscator/Makefile index bb7adcad0..40227c149 100644 --- a/node-javascript-obfuscator/Makefile +++ b/node-javascript-obfuscator/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -90,9 +88,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-johnny-five/Makefile b/node-johnny-five/Makefile index 20873ed67..926cdab24 100644 --- a/node-johnny-five/Makefile +++ b/node-johnny-five/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-jsonfile/Makefile b/node-jsonfile/Makefile index 47f5b5355..48aa01dd8 100644 --- a/node-jsonfile/Makefile +++ b/node-jsonfile/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-lambda/Makefile b/node-lambda/Makefile index ac2c1e285..c8aab9f11 100644 --- a/node-lambda/Makefile +++ b/node-lambda/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true diff --git a/node-level/Makefile b/node-level/Makefile index 9ec9f991e..8c07f9323 100644 --- a/node-level/Makefile +++ b/node-level/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-leveldown/Makefile b/node-leveldown/Makefile index fc2c03ba2..72f840fc6 100644 --- a/node-leveldown/Makefile +++ b/node-leveldown/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-levelup/Makefile b/node-levelup/Makefile index 5b78dd4ff..82fd050dc 100644 --- a/node-levelup/Makefile +++ b/node-levelup/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-logfmt/Makefile b/node-logfmt/Makefile index 1702c4072..449a32c9a 100644 --- a/node-logfmt/Makefile +++ b/node-logfmt/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-lwm2m-node-lib/Makefile b/node-lwm2m-node-lib/Makefile index d557dd9cf..5523296e9 100644 --- a/node-lwm2m-node-lib/Makefile +++ b/node-lwm2m-node-lib/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-mdns/Makefile b/node-mdns/Makefile index 6c744df2e..b41be4ca3 100644 --- a/node-mdns/Makefile +++ b/node-mdns/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-megahash/Makefile b/node-megahash/Makefile index 90c0fb60e..85731d02a 100644 --- a/node-megahash/Makefile +++ b/node-megahash/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-mocha/Makefile b/node-mocha/Makefile index 809fe18a9..ff8dc5e87 100644 --- a/node-mocha/Makefile +++ b/node-mocha/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -91,9 +89,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-modbus-serial/Makefile b/node-modbus-serial/Makefile index cd701c3a3..eff81d81a 100644 --- a/node-modbus-serial/Makefile +++ b/node-modbus-serial/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-modclean/Makefile b/node-modclean/Makefile index 137cf4443..d6e12d2d7 100644 --- a/node-modclean/Makefile +++ b/node-modclean/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -90,9 +88,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-mqtt/Makefile b/node-mqtt/Makefile index ed8caa956..c153f0693 100644 --- a/node-mqtt/Makefile +++ b/node-mqtt/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true diff --git a/node-nconf/Makefile b/node-nconf/Makefile index c3353cf1a..fe7e16994 100644 --- a/node-nconf/Makefile +++ b/node-nconf/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-net-ping/Makefile b/node-net-ping/Makefile index 7838ecd2c..557629a8c 100644 --- a/node-net-ping/Makefile +++ b/node-net-ping/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NPM_NAME:=net-ping PKG_NAME:=node-$(PKG_NPM_NAME) PKG_VERSION:=1.2.3 -PKG_RELEASE:=4 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=https://registry.npmjs.org/$(PKG_NPM_NAME)/-/ @@ -29,7 +29,7 @@ define Package/node-net-ping CATEGORY:=Languages TITLE:=Raw sockets for Node.js URL:=https://www.npmjs.com/package/net-ping - DEPENDS:=+node + DEPENDS:=+node +node-raw-socket endef define Package/node-net-ping/description @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -64,8 +62,6 @@ define Package/node-net-ping/install $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME) $(CP) $(PKG_BUILD_DIR)/{package.json,*.md,*.js} \ $(1)/usr/lib/node/$(PKG_NPM_NAME)/ - $(CP) $(PKG_BUILD_DIR)/{node_modules,example} \ - $(1)/usr/lib/node/$(PKG_NPM_NAME)/ $(INSTALL_DIR) $(1)/usr/lib/node_modules $(LN) ../node/$(PKG_NPM_NAME) $(1)/usr/lib/node_modules/$(PKG_NPM_NAME) endef diff --git a/node-net-ping/patches/000-remove_depends.patch b/node-net-ping/patches/000-remove_depends.patch new file mode 100644 index 000000000..78343b1e1 --- /dev/null +++ b/node-net-ping/patches/000-remove_depends.patch @@ -0,0 +1,10 @@ +--- a/package.json ++++ b/package.json +@@ -7,7 +7,6 @@ + "example": "example" + }, + "dependencies": { +- "raw-socket": "*" + }, + "contributors": [ + { diff --git a/node-noble-device/Makefile b/node-noble-device/Makefile index d60624eb4..b39c7f4b8 100644 --- a/node-noble-device/Makefile +++ b/node-noble-device/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-noble/Makefile b/node-noble/Makefile index 40c1500d7..08897bc00 100644 --- a/node-noble/Makefile +++ b/node-noble/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-npm-check-updates/Makefile b/node-npm-check-updates/Makefile index 810ffcda9..cef8bc016 100644 --- a/node-npm-check-updates/Makefile +++ b/node-npm-check-updates/Makefile @@ -52,10 +52,8 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ npm install --prefer-offline --no-audit --no-save --no-package-lock --legacy-peer-deps --ignore-scripts - # npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --legacy-peer-deps - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + # npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --legacy-peer-deps rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true diff --git a/node-onoff/Makefile b/node-onoff/Makefile index 0b23f805a..90711b67d 100644 --- a/node-onoff/Makefile +++ b/node-onoff/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-openzwave-shared/Makefile b/node-openzwave-shared/Makefile index 8e9653466..d9cf070bf 100644 --- a/node-openzwave-shared/Makefile +++ b/node-openzwave-shared/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NPM_NAME:=openzwave-shared PKG_NAME:=node-$(PKG_NPM_NAME) PKG_VERSION:=1.7.2 -PKG_RELEASE:=2 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=https://registry.npmjs.org/$(PKG_NPM_NAME)/-/ @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-openzwave-shared/patches/001-nan_update.patch b/node-openzwave-shared/patches/001-nan_update.patch new file mode 100644 index 000000000..02f71c93d --- /dev/null +++ b/node-openzwave-shared/patches/001-nan_update.patch @@ -0,0 +1,11 @@ +--- a/package.json ++++ b/package.json +@@ -5,7 +5,7 @@ + "main": "./lib/openzwave-shared.js", + "types": "./types/openzwave-shared.d.ts", + "dependencies": { +- "nan": ">=2.14.0" ++ "nan": "^2.17.0" + }, + "scripts": { + "test": "node test.js", diff --git a/node-openzwave-shared/patches/999-node_v16_support.patch b/node-openzwave-shared/patches/999-node_v20_support.patch similarity index 94% rename from node-openzwave-shared/patches/999-node_v16_support.patch rename to node-openzwave-shared/patches/999-node_v20_support.patch index a064bde9f..20137761c 100644 --- a/node-openzwave-shared/patches/999-node_v16_support.patch +++ b/node-openzwave-shared/patches/999-node_v20_support.patch @@ -5,7 +5,7 @@ ], "cflags_cc": [ - "-std=c++11" -+ "-std=c++14" ++ "-std=c++17" ], "cflags_cc!": [ " +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=README.md + +PKG_BUILD_DEPENDS:=node/host +PKG_BUILD_PARALLEL:=1 +PKG_USE_MIPS16:=0 + +include $(INCLUDE_DIR)/package.mk + +define Package/node-raw-socket + SUBMENU:=Node.js + SECTION:=lang + CATEGORY:=Languages + TITLE:=Raw sockets for Node.js + URL:=https://www.npmjs.org/package/raw-socket + DEPENDS:=+node +endef + +define Package/node-raw-socket/description + This module implements raw sockets for Node.js. + This module has been created primarily to facilitate implementation of the net-ping module. +endef + +TAR_OPTIONS+= --strip-components 1 +TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) + +NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))))) +TMPNPM:=$(shell mktemp -u XXXXXXXXXX) +NPM_CACHE_DIR:=$(if $(call qstrip,$(CONFIG_NODEJS_NPM_CACHE_DIR)),$(call qstrip,$(CONFIG_NODEJS_NPM_CACHE_DIR)),$(TMP_DIR)) + +TARGET_CFLAGS+=$(FPIC) +TARGET_CPPFLAGS+=$(FPIC) + +define Build/Compile + cd $(PKG_BUILD_DIR); \ + $(MAKE_VARS) \ + $(MAKE_FLAGS) \ + npm_config_nodedir=$(STAGING_DIR)/usr/ \ + $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) + rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) + rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json + find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true +endef + +define Package/node-raw-socket/install + $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME) + $(CP) $(PKG_BUILD_DIR)/{package.json,README.md} \ + $(1)/usr/lib/node/$(PKG_NPM_NAME)/ + $(CP) $(PKG_BUILD_DIR)/{node_modules,*.js} \ + $(1)/usr/lib/node/$(PKG_NPM_NAME)/ + $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME)/build/Release + $(CP) $(PKG_BUILD_DIR)/build/Release/raw.node \ + $(1)/usr/lib/node/$(PKG_NPM_NAME)/build/Release/ + $(INSTALL_DIR) $(1)/usr/lib/node_modules + $(LN) ../node/$(PKG_NPM_NAME) $(1)/usr/lib/node_modules/$(PKG_NPM_NAME) +endef + +define Package/node-raw-socket/postrm +#!/bin/sh +rm /usr/lib/node_modules/raw-socket || true +rm -rf /usr/lib/node/raw-socket || true +endef + +$(eval $(call BuildPackage,node-raw-socket)) diff --git a/node-raw-socket/patches/001-nan_update.patch b/node-raw-socket/patches/001-nan_update.patch new file mode 100644 index 000000000..9ce857cd8 --- /dev/null +++ b/node-raw-socket/patches/001-nan_update.patch @@ -0,0 +1,11 @@ +--- a/package.json ++++ b/package.json +@@ -7,7 +7,7 @@ + "example": "example" + }, + "dependencies": { +- "nan": "2.14.*" ++ "nan": "^2.17.0" + }, + "contributors": [ + { diff --git a/node-red-contrib-gpio/Makefile b/node-red-contrib-gpio/Makefile index 71393ea21..cbf5d35b8 100644 --- a/node-red-contrib-gpio/Makefile +++ b/node-red-contrib-gpio/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red-contrib-homekit-bridged/Makefile b/node-red-contrib-homekit-bridged/Makefile index 34a86b043..a9aee1f81 100644 --- a/node-red-contrib-homekit-bridged/Makefile +++ b/node-red-contrib-homekit-bridged/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red-contrib-modbus/Makefile b/node-red-contrib-modbus/Makefile index fd41d197e..809c665fb 100644 --- a/node-red-contrib-modbus/Makefile +++ b/node-red-contrib-modbus/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --omit=optional --no-optional - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --omit=optional --no-optional rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red-dashboard/Makefile b/node-red-dashboard/Makefile index a4bc270c4..ce94b33d4 100644 --- a/node-red-dashboard/Makefile +++ b/node-red-dashboard/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true diff --git a/node-red-node-arduino/Makefile b/node-red-node-arduino/Makefile index c6695a564..374e6aa8d 100644 --- a/node-red-node-arduino/Makefile +++ b/node-red-node-arduino/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red-node-discovery/Makefile b/node-red-node-discovery/Makefile index 9cbe2afef..3b637c6fc 100644 --- a/node-red-node-discovery/Makefile +++ b/node-red-node-discovery/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red-node-serialport/Makefile b/node-red-node-serialport/Makefile index 80330d809..36087ca59 100644 --- a/node-red-node-serialport/Makefile +++ b/node-red-node-serialport/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red-node-sqlite/Makefile b/node-red-node-sqlite/Makefile index 38b5c77c9..4d37472db 100644 --- a/node-red-node-sqlite/Makefile +++ b/node-red-node-sqlite/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-red/Makefile b/node-red/Makefile index 73f26e7de..a49ec7f4c 100644 --- a/node-red/Makefile +++ b/node-red/Makefile @@ -56,17 +56,15 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --omit=optional --no-optional --prefer-dedupe + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --omit=optional --no-optional --prefer-dedupe clean-modules -y -D $(PKG_BUILD_DIR)/node_modules --exclude "**/*.png" "**/example/" "**/examples/" + rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) + rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json + find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true #rm -rf $(PKG_BUILD_DIR)/node_modules/@node-red/nodes/node_modules/ajv/lib rm -rf $(PKG_BUILD_DIR)/node_modules/@node-red/util/node_modules/moment/min rm -rf $(PKG_BUILD_DIR)/node_modules/@node-red/util/node_modules/moment/src rm -rf $(PKG_BUILD_DIR)/node_modules/@node-red/util/node_modules/moment/locale - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) - rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) - rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json - find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true endef define Package/node-red/install diff --git a/node-rimraf/Makefile b/node-rimraf/Makefile index 3981a037b..90e5e7ed3 100644 --- a/node-rimraf/Makefile +++ b/node-rimraf/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -90,9 +88,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-rpi-gpio/Makefile b/node-rpi-gpio/Makefile index 82d78e7fb..25fb3ea83 100644 --- a/node-rpi-gpio/Makefile +++ b/node-rpi-gpio/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-rpio/Makefile b/node-rpio/Makefile index 0ee9ab669..05b62819e 100644 --- a/node-rpio/Makefile +++ b/node-rpio/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-serialport-bindings-cpp/Makefile b/node-serialport-bindings-cpp/Makefile index 7443c63e4..594e843ae 100644 --- a/node-serialport-bindings-cpp/Makefile +++ b/node-serialport-bindings-cpp/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-serialport-bindings/Makefile b/node-serialport-bindings/Makefile index c1733f1aa..d782f154c 100644 --- a/node-serialport-bindings/Makefile +++ b/node-serialport-bindings/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-serialport-list/Makefile b/node-serialport-list/Makefile index e2e51958e..23a66c10e 100644 --- a/node-serialport-list/Makefile +++ b/node-serialport-list/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-serialport/Makefile b/node-serialport/Makefile index 5b2b10512..a415627b4 100644 --- a/node-serialport/Makefile +++ b/node-serialport/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-simple-xmpp/Makefile b/node-simple-xmpp/Makefile index f5938df3d..167fdb046 100644 --- a/node-simple-xmpp/Makefile +++ b/node-simple-xmpp/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-sleep/Makefile b/node-sleep/Makefile index 1d97fa6e8..7a80a2128 100644 --- a/node-sleep/Makefile +++ b/node-sleep/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-socket.io-client/Makefile b/node-socket.io-client/Makefile index 6a50e2edf..e413928fc 100644 --- a/node-socket.io-client/Makefile +++ b/node-socket.io-client/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-socket.io/Makefile b/node-socket.io/Makefile index 405e0b14c..a9deffd9e 100644 --- a/node-socket.io/Makefile +++ b/node-socket.io/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-spi-device/Makefile b/node-spi-device/Makefile index 5609b99d7..fcbb2ae48 100644 --- a/node-spi-device/Makefile +++ b/node-spi-device/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-sqlite3/Makefile b/node-sqlite3/Makefile index 47d070c4f..5c33f3972 100644 --- a/node-sqlite3/Makefile +++ b/node-sqlite3/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-static/Makefile b/node-static/Makefile index a4f5569ee..ec2013435 100644 --- a/node-static/Makefile +++ b/node-static/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-statvfs/Makefile b/node-statvfs/Makefile index 6f9af271d..f50050923 100644 --- a/node-statvfs/Makefile +++ b/node-statvfs/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-system-sleep/Makefile b/node-system-sleep/Makefile index 5e6a73bf1..7353e4a30 100644 --- a/node-system-sleep/Makefile +++ b/node-system-sleep/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-twilio/Makefile b/node-twilio/Makefile index 2bd5b9621..fc3120eee 100644 --- a/node-twilio/Makefile +++ b/node-twilio/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-typescript/Makefile b/node-typescript/Makefile index aef441c27..9b8b82485 100644 --- a/node-typescript/Makefile +++ b/node-typescript/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -89,9 +87,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-ubus/Makefile b/node-ubus/Makefile index 415138055..8f183b560 100644 --- a/node-ubus/Makefile +++ b/node-ubus/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-uglify-js/Makefile b/node-uglify-js/Makefile index 388607c8b..78238625a 100644 --- a/node-uglify-js/Makefile +++ b/node-uglify-js/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -91,9 +89,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-usb/Makefile b/node-usb/Makefile index 774e42faf..0b2c44dcf 100644 --- a/node-usb/Makefile +++ b/node-usb/Makefile @@ -54,17 +54,14 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) --ignore-scripts + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) --ignore-scripts cd $(PKG_BUILD_DIR); \ GYP_DEFINES='use_system_libusb=1' \ $(MAKE_VARS) \ $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm run install --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm run install --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-utf-8-validate/Makefile b/node-utf-8-validate/Makefile index f5f6ca10e..0be457db1 100644 --- a/node-utf-8-validate/Makefile +++ b/node-utf-8-validate/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-websocket/Makefile b/node-websocket/Makefile index 8423c3c1c..919ac1801 100644 --- a/node-websocket/Makefile +++ b/node-websocket/Makefile @@ -52,9 +52,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-ws/Makefile b/node-ws/Makefile index e6eba6e54..8d4e33bc9 100644 --- a/node-ws/Makefile +++ b/node-ws/Makefile @@ -55,9 +55,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-yarn/Makefile b/node-yarn/Makefile index 3ea96e909..415252cab 100644 --- a/node-yarn/Makefile +++ b/node-yarn/Makefile @@ -57,9 +57,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true @@ -91,9 +89,7 @@ define Host/Compile $(HOST_MAKE_VARS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/host-npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(TMP_DIR)/npm-tmp-$(HOSTTMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock rm -rf $(TMP_DIR)/npm-cache-$(HOSTTMPNPM) rm -f $(HOST_BUILD_DIR)/node_modules/.package-lock.json find $(HOST_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true diff --git a/node-zigbee2mqtt/Makefile b/node-zigbee2mqtt/Makefile index 29810132f..6dbcdb4eb 100644 --- a/node-zigbee2mqtt/Makefile +++ b/node-zigbee2mqtt/Makefile @@ -57,8 +57,11 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) --prefer-dedupe + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) --prefer-dedupe + rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) + rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json + find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true + rm -rf $(PKG_BUILD_DIR)/node_modules/zigbee-herdsman/node_modules/@serialport/bindings-cpp/prebuilds rm -rf $(PKG_BUILD_DIR)/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman rm -rf $(PKG_BUILD_DIR)/node_modules/ajv/lib rm -rf $(PKG_BUILD_DIR)/node_modules/moment/min @@ -67,11 +70,6 @@ define Build/Compile clean-modules -y -D $(PKG_BUILD_DIR)/node_modules --exclude "**/*.map.js" "**/*.png" \ "**/example/" "**/examples/" --include "**/npm-shrinkwrap.json" "**/.babelrc.js" \ "**/.prebuild-installrc" "**/obj.target/" "**/config.gypi" "**/binding.Makefile" - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) - rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) - rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json - find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true - rm -rf $(PKG_BUILD_DIR)/node_modules/zigbee-herdsman/node_modules/@serialport/bindings-cpp/prebuilds endef define Package/node-zigbee2mqtt/install diff --git a/node-zwave-js/Makefile b/node-zwave-js/Makefile index cee284ff4..fb00c172b 100644 --- a/node-zwave-js/Makefile +++ b/node-zwave-js/Makefile @@ -29,7 +29,7 @@ define Package/node-zwave-js CATEGORY:=Languages TITLE:=Z-Wave driver written entirely in JavaScript/TypeScript URL:=https://www.npmjs.org/package/zwave-js - DEPENDS:=+node +node-serialport + DEPENDS:=+node +node-bufferutil +node-utf-8-validate endef define Package/node-zwave-js/description @@ -52,13 +52,11 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock - rm -rf $(PKG_BUILD_DIR)/node_modules/serialport - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU) rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true + rm -rf $(PKG_BUILD_DIR)/node_modules/serialport/node_modules/@serialport/bindings-cpp/prebuilds endef define Package/node-zwave-js/install diff --git a/ts-node/Makefile b/ts-node/Makefile index 2eefdea38..916e7541b 100644 --- a/ts-node/Makefile +++ b/ts-node/Makefile @@ -53,9 +53,7 @@ define Build/Compile $(MAKE_FLAGS) \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ $(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \ - npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ - npm install --prefer-offline --no-audit --production --global-style --no-save --omit=dev --no-package-lock --ignore-scripts - rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --ignore-scripts rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json find $(PKG_BUILD_DIR)/node_modules -type d -empty -delete || true