mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
fix: update date handling in jsonEditor for product.json
This commit is contained in:
@@ -321,7 +321,7 @@ function packageTask(type: string, platform: string, arch: string, sourceFolderN
|
||||
|
||||
let productJsonContents = '';
|
||||
const productJsonStream = gulp.src(['product.json'], { base: '.' })
|
||||
.pipe(jsonEditor({ commit, date: readISODate(sourceFolderName), version }))
|
||||
.pipe(jsonEditor({ commit, date: readISODate('out-build'), version }))
|
||||
.pipe(es.through(function (file) {
|
||||
productJsonContents = file.contents.toString();
|
||||
this.emit('data', file);
|
||||
|
||||
@@ -370,7 +370,7 @@ function packageTask(platform: string, arch: string, sourceFolderName: string, d
|
||||
|
||||
let productJsonContents: string;
|
||||
const productJsonStream = gulp.src(['product.json'], { base: '.' })
|
||||
.pipe(jsonEditor({ commit, date: readISODate(out), checksums, version }))
|
||||
.pipe(jsonEditor({ commit, date: readISODate('out-build'), checksums, version }))
|
||||
.pipe(es.through(function (file) {
|
||||
productJsonContents = file.contents.toString();
|
||||
this.emit('data', file);
|
||||
|
||||
Reference in New Issue
Block a user