Skip to content
Permalink
Browse files

remove obsolete node removal

  • Loading branch information...
hobbyquaker committed Oct 2, 2019
1 parent 1dcf344 commit 41412a51e374f48334148027a3ecf95b850f97e3
Showing with 0 additions and 8 deletions.
  1. +0 −8 build.sh
@@ -41,12 +41,6 @@ npm install --silent --no-package-lock --production --no-optional --global-style
npm install --slient --no-package-lock --production --global-style ain2
rm $ADDON_TMP/redmatic/lib/package.json

echo "removing included extra nodes..."
rm -r $ADDON_TMP/redmatic/lib/node_modules/node-red/node_modules/node-red-node-email
rm -r $ADDON_TMP/redmatic/lib/node_modules/node-red/node_modules/node-red-node-feedparser
rm -r $ADDON_TMP/redmatic/lib/node_modules/node-red/node_modules/node-red-node-rbe
rm -r $ADDON_TMP/redmatic/lib/node_modules/node-red/node_modules/node-red-node-twitter

echo "installing additional Node-RED nodes..."
cd $ADDON_TMP/redmatic/var
npm install --silent --no-package-lock --production --no-optional --global-style
@@ -77,8 +71,6 @@ echo "bundling packages..."
node $BUILD_DIR/bundle-pkgs.js

echo "adapt Node-RED..."
rm -r $ADDON_TMP/redmatic/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware

INSTALLER=$ADDON_TMP/redmatic/lib/node_modules/node-red/node_modules/@node-red/registry/lib/installer.js
sed "s/var args = \['install'/var args = ['install','--no-package-lock','--global-style'/" $INSTALLER > $INSTALLER.tmp && mv $INSTALLER.tmp $INSTALLER
sed "s/var args = \['remove'/var args = ['remove','--no-package-lock'/" $INSTALLER > $INSTALLER.tmp && mv $INSTALLER.tmp $INSTALLER

0 comments on commit 41412a5

Please sign in to comment.
You can’t perform that action at this time.