mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
fix(build): Actually install package dependencies
This commit is contained in:
parent
0beca3e93a
commit
8b751f2520
|
@ -12,8 +12,6 @@
|
|||
"atom": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"bower": "^1.3",
|
||||
"requirejs": "~2.1.15"
|
||||
},
|
||||
"windowTypes": {
|
||||
"composer": true
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue