Skip to content

Commit

Permalink
Merge pull request #1423 from xzyfer/feat/dont-ignore-vendor-folder
Browse files Browse the repository at this point in the history
Remove vendor directory on prepublish and pack
  • Loading branch information
xzyfer committed Mar 23, 2016
2 parents 08440ac + 0064482 commit 5b2862e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -32,14 +32,16 @@
"postinstall": "node scripts/build.js",
"pretest": "node_modules/.bin/jshint bin lib scripts test",
"test": "node_modules/.bin/mocha test",
"build": "node scripts/build.js --force"
"build": "node scripts/build.js --force",
"prepublish": "not-in-install && node scripts/prepublish.js || in-install"
},
"files": [
"bin",
"binding.gyp",
"lib",
"scripts",
"src"
"src",
"vendor"
],
"keywords": [
"css",
Expand All @@ -58,6 +60,7 @@
"glob": "^7.0.3",
"got": "^5.5.0",
"meow": "^3.7.0",
"in-publish": "^2.0.0",
"mkdirp": "^0.5.1",
"nan": "^2.2.0",
"node-gyp": "^3.3.1",
Expand Down
17 changes: 17 additions & 0 deletions scripts/prepublish.js
@@ -0,0 +1,17 @@
/*!
* node-sass: scripts/install.js
*/

var path = require('path'),
rimraf = require('rimraf');

function prepublish() {
var vendorPath = path.resolve(__dirname, '..', 'vendor');
rimraf.sync(vendorPath);
}

/**
* Run
*/

prepublish();

0 comments on commit 5b2862e

Please sign in to comment.