...
|
...
|
@@ -47,8 +47,8 @@ class Build { |
|
|
this._prebuild();
|
|
|
this.startTime = (new Date()).getTime();
|
|
|
return this._cloneCode(this.branch).then(() => {
|
|
|
let pkg = require(path.join(self.codePath, 'package.json'));
|
|
|
// set version
|
|
|
let pkg = JSON.parse(fs.readFileSync(path.join(self.codePath, 'package.json')));
|
|
|
|
|
|
self.version = pkg.version;
|
|
|
self.pkgName = pkg.name;
|
|
|
|
...
|
...
|
|