feat(testing): package angular2_testing to prepare it for publishing

Closes #5682
This commit is contained in:
Julie Ralph
2015-12-03 17:26:18 -08:00
parent cbf788869d
commit cc8f1f9552
4 changed files with 47 additions and 16 deletions

View File

@ -37,3 +37,4 @@ publishModule angular2
publishModule benchpress
publishModule benchmarks
publishModule angular2_material
publishModule angular2_testing

View File

@ -27,4 +27,9 @@ doc['authors'] = Object.keys(BASE_PACKAGE_JSON.contributors).map(function(name)
return BASE_PACKAGE_JSON.contributors[name];
});
if (doc['dependencies'] && doc['dependencies']['angular2']) {
delete doc['dependencies']['angular2'];
doc['dependencies']['angular2'] = BASE_PACKAGE_JSON.version;
}
fs.writeFileSync(pubspecFile, yaml.safeDump(doc));