Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
fix: synth.py clean up for multiple version (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng authored May 7, 2020
1 parent a63f31c commit 1b36546
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: codecov/codecov-action@v1
with:
name: actions ${{ matrix.node }}
fail_ci_if_error: true
fail_ci_if_error: false
windows:
runs-on: windows-latest
steps:
Expand All @@ -36,7 +36,7 @@ jobs:
uses: codecov/codecov-action@v1
with:
name: actions windows
fail_ci_if_error: true
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
Expand Down
11 changes: 5 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,17 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** This file is automatically generated by synthtool. **
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

import * as v1beta1 from './v1beta1';
import * as v1 from './v1';
import * as v1beta1 from './v1beta1';

const TextToSpeechClient = v1.TextToSpeechClient;

export {v1, v1beta1, TextToSpeechClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1, v1beta1, TextToSpeechClient};
import * as protos from '../protos/protos';
export {protos};
2 changes: 1 addition & 1 deletion synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "ab883569eb0257bbf16a6d825fd018b3adde3912"
"sha": "be74d3e532faa47eb59f1a0eaebde0860d1d8ab4"
}
}
],
Expand Down
9 changes: 5 additions & 4 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@
'texttospeech',
generator_args={
"grpc-service-config": f"google/cloud/texttospeech/{version}/texttospeech_grpc_service_config.json",
"package-name":f"@google-cloud/text-to-speech"
},
"package-name": f"@google-cloud/text-to-speech"
},
proto_path=f'/google/cloud/texttospeech/{version}',
version=version)

# skip index, protos, package.json, and README.md
s.copy(
library,
excludes=['package.json', 'README.md', 'src/index.ts'],
excludes=['package.json', 'README.md'],
)

templates = common_templates.node_library(source_location='build/src')
templates = common_templates.node_library(
source_location='build/src', versions=versions, default_version='v1')
s.copy(templates)

node.postprocess_gapic_library()

0 comments on commit 1b36546

Please sign in to comment.