Skip to content

Commit

Permalink
build: rimraf build/ after install
Browse files Browse the repository at this point in the history
Fixes: #38
  • Loading branch information
addaleax committed Jun 26, 2017
1 parent 0709849 commit d5a252e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install:
- node -p process.arch
- node -p process.version
- npm install node-gyp@3.6.1
- npm install nan node-pre-gyp readable-stream
- npm install nan node-pre-gyp readable-stream rimraf
- IF %nodejs_version% LSS 1 npm -g install npm
- IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
- npm run prepare
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"dependencies": {
"nan": "2.5.1",
"node-pre-gyp": "^0.6.21",
"readable-stream": "^2.0.5"
"readable-stream": "^2.0.5",
"rimraf": "^2.6.1"
},
"bundledDependencies": [
"node-pre-gyp"
"node-pre-gyp", "rimraf"
],
"keywords": [
"lzma",
Expand All @@ -35,7 +36,7 @@
"url": "https://github.com/addaleax/lzma-native.git"
},
"scripts": {
"install": "node-pre-gyp install --fallback-to-build",
"install": "node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build",
"test": "mocha --expose-gc -s 1000 -t 5000",
"prepare": "cd deps && 7z x -y xz-5.2.3-windows.7z bin_i686/liblzma.dll bin_x86-64/liblzma.dll include doc/liblzma.def",
"jshint": "jshint ."
Expand Down

0 comments on commit d5a252e

Please sign in to comment.