Skip to content

Commit

Permalink
Update version to 2.0.1-beta.8 and add an uninstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmelsayed committed Aug 25, 2017
1 parent 0938a78 commit efa1931
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
*.sass text=auto
*.less text=auto
*.js text eol=lf
*.json text eol=lf
*.lisp text=auto
*.clj text=auto
*.sql text=auto
Expand Down
13 changes: 13 additions & 0 deletions src/Azure.Functions.Cli/npm/lib/uninstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /usr/bin/env node

var path = require('path');
var fs = require('fs');
var os = require('os');
var rimraf = require('rimraf');


var bin = path.join(os.homedir(), '.azurefunctions', 'bin');
if (fs.existsSync(bin)) {
console.log('deleting ' + bin);
rimraf.sync(bin);
}
5 changes: 3 additions & 2 deletions src/Azure.Functions.Cli/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "azure-functions-core-tools",
"version": "2.0.1-beta.7",
"version": "2.0.1-beta.8",
"description": "Azure Functions Core Tools",
"scripts": {
"build": "dotnet publish ../ -o ./npm/bin -c release",
"postinstall": "node lib/install.js"
"postinstall": "node lib/install.js",
"uninstall": "node lib/uninstall.js"
},
"author": "Microsoft",
"license": "MIT",
Expand Down

0 comments on commit efa1931

Please sign in to comment.