mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(build): change gulp package process to use @angular/core not angular2 for version matching.
This commit is contained in:
@ -812,7 +812,7 @@ gulp.task('package', function(done){
|
||||
var templateVars = {};
|
||||
var packageJSON = require('./package.json');
|
||||
templateVars.ionicVersion = packageJSON.version;
|
||||
templateVars.angularVersion = packageJSON.dependencies.angular2;
|
||||
templateVars.angularVersion = packageJSON.dependencies['@angular/core'];
|
||||
var packageTemplate = _.template(fs.readFileSync('scripts/npm/package.json'));
|
||||
fs.writeFileSync(distDir + '/package.json', packageTemplate(templateVars));
|
||||
done();
|
||||
|
Reference in New Issue
Block a user