mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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 templateVars = {};
|
||||||
var packageJSON = require('./package.json');
|
var packageJSON = require('./package.json');
|
||||||
templateVars.ionicVersion = packageJSON.version;
|
templateVars.ionicVersion = packageJSON.version;
|
||||||
templateVars.angularVersion = packageJSON.dependencies.angular2;
|
templateVars.angularVersion = packageJSON.dependencies['@angular/core'];
|
||||||
var packageTemplate = _.template(fs.readFileSync('scripts/npm/package.json'));
|
var packageTemplate = _.template(fs.readFileSync('scripts/npm/package.json'));
|
||||||
fs.writeFileSync(distDir + '/package.json', packageTemplate(templateVars));
|
fs.writeFileSync(distDir + '/package.json', packageTemplate(templateVars));
|
||||||
done();
|
done();
|
||||||
|
Reference in New Issue
Block a user