Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…r-nodes-for-Node-RED into release

PI 11 Release
  • Loading branch information
vamsee committed Oct 25, 2018
2 parents 568c21b + 2696a44 commit e1c69be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "loopback-connector-nodes-for-Node-RED",
"version": "1.5.0",
"version": "1.6.0",
"description": "Node-RED nodes to connect loopback (http://loopback.io) based node applications",
"main": "node-red.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node postinstall.js"
},
"repository": {
"type": "git",
Expand All @@ -31,8 +32,8 @@
"find-data": "find-data/find-data.js",
"decision-table": "rule-engine-decision-table/decision-table.js",
"oe-logger": "oe-logger/oe-logger.js",
"remote-method" : "remote-method/remote-method.js",
"execute-remote-method": "execute-remote-method/execute-remote-method.js"
"remote-method": "remote-method/remote-method.js",
"execute-remote-method": "execute-remote-method/execute-remote-method.js"
}
},
"author": "Atul",
Expand Down
19 changes: 19 additions & 0 deletions postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var fs = require('fs');
var deleteFolderRecursive = function(path) {
if( fs.existsSync(path) ) {
fs.readdirSync(path).forEach(function(file,index){
var curPath = path + "/" + file;
if(fs.lstatSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(path);
}
};
var initDir = process.env.INIT_CWD;
deleteFolderRecursive(initDir + "/node_modules/node-red-node-email");
deleteFolderRecursive(initDir + "/node_modules/mailparser");
deleteFolderRecursive(initDir + "/node_modules/mimelib");
console.log("Removed node-red-node-email module");

0 comments on commit e1c69be

Please sign in to comment.