Commit 5b2862e2 by Michael Mifsud

Merge pull request #1423 from xzyfer/feat/dont-ignore-vendor-folder

Remove vendor directory on prepublish and pack
parents 08440ac8 00644824
......@@ -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",
......@@ -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",
......
/*!
* 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();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment