mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-14 16:44:36 +08:00
fix(build): Actually install package dependencies
This commit is contained in:
parent
55161e90f7
commit
bdc849c22b
2 changed files with 18 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue