fix(build): Actually install package dependencies

This commit is contained in:
Ben Gotow 2015-07-24 19:12:25 -07:00
parent 0beca3e93a
commit 8b751f2520
2 changed files with 18 additions and 3 deletions

View file

@ -12,8 +12,6 @@
"atom": "*"
},
"dependencies": {
"bower": "^1.3",
"requirejs": "~2.1.15"
},
"windowTypes": {
"composer": true

View file

@ -113,7 +113,24 @@ function bootstrap() {
{
command: apmPath + ' clean' + apmFlags,
message: m3
},
}
];
// we need this because we don't put our modules in node_modules and npm
// install doesn't find them. Run APM install on each package directory manually.
internalPackagesDir = path.resolve(__dirname, '..', 'internal_packages');
internalPackages = fs.readdirSync('internal_packages');
internalPackages.forEach(function(dir) {
if (fs.existsSync(path.join(internalPackagesDir, dir, 'package.json'))) {
commands.push({
command: moduleInstallCommand,
message: "Installing dependencies for "+dir,
options: {cwd: path.join(internalPackagesDir, dir) }
});
}
});
commands.concat [
{
command: moduleInstallCommand,
message: m4