Final fix

This commit is contained in:
Pine Wu
2019-05-20 16:23:26 -07:00
parent 2d59250e81
commit 5cbc0aa83d
2 changed files with 5 additions and 5 deletions
@@ -2,7 +2,7 @@
trigger:
branches:
include: ['octref/devops-publish-types', 'refs/tags/*']
include: ['refs/tags/*']
steps:
- task: NodeTool@0
@@ -39,12 +39,12 @@ function updateDTSFile(outPath: string, tag: string) {
function getNewFileContent(content: string, tag: string) {
const oldheader = [
`/*---------------------------------------------------------------------------------------------`,
`* Copyright (c) Microsoft Corporation. All rights reserved.`,
`* Licensed under the MIT License. See License.txt in the project root for license information.`,
`*--------------------------------------------------------------------------------------------*/`
` * Copyright (c) Microsoft Corporation. All rights reserved.`,
` * Licensed under the MIT License. See License.txt in the project root for license information.`,
` *--------------------------------------------------------------------------------------------*/`
].join('\n');
return getNewFileHeader(tag) + content.slice(oldheader.length + 2);
return getNewFileHeader(tag) + content.slice(oldheader.length);
}
function getNewFileHeader(tag: string) {