Skip to content

Commit

Permalink
Fixed build script calls closes automation-stack#58, fixed deprecatio…
Browse files Browse the repository at this point in the history
…n warnings on unlink

calls
  • Loading branch information
PearlDragon committed Jan 12, 2018
1 parent fd0a78d commit 715d95a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
},
"homepage": "https://github.com/automation-stack/electron-sudo#readme",
"scripts": {
"build": "node_modules/webpack/bin/webpack.js --config ./webpack/config.babel.js",
"build": "node node_modules/webpack/bin/webpack.js --config ./webpack/config.babel.js",
"build-win32": "node node_modules\\webpack\\bin\\webpack.js --config webpack\\config.babel.js",
"prepublish": "npm run test",
"lint": "node_modules/eslint/bin/eslint.js -c .eslintrc ./src",
"test-win32": "npm run build-win32 && node node_modules\\mocha\\bin\\mocha --compilers js:babel-core/register tests",
"test": "npm run build && node_modules/mocha/bin/mocha --compilers js:babel-core/register ./tests"
"test": "npm run build && node node_modules/mocha/bin/mocha --compilers js:babel-core/register ./tests"
},
"devDependencies": {
"babel-cli": "^6.10.1",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/sudoer.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ class SudoerWin32 extends Sudoer {

clean (cp) {
unwatchFile(cp.files.output);
unlink(cp.files.batch);
unlink(cp.files.output);
unlinkSync(cp.files.batch);
unlinkSync(cp.files.output);
}
}

Expand Down

0 comments on commit 715d95a

Please sign in to comment.