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

Commit

Permalink
fix: synth.py clean up for multiple version (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng committed May 7, 2020
1 parent 866c028 commit 4e0e5bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 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,19 @@
// 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 v3 from './v3';

const AlertPolicyServiceClient = v3.AlertPolicyServiceClient;
const GroupServiceClient = v3.GroupServiceClient;
const MetricServiceClient = v3.MetricServiceClient;
const NotificationChannelServiceClient = v3.NotificationChannelServiceClient;
const ServiceMonitoringServiceClient = v3.ServiceMonitoringServiceClient;
const UptimeCheckServiceClient = v3.UptimeCheckServiceClient;

export {
v3,
AlertPolicyServiceClient,
Expand All @@ -32,8 +34,6 @@ export {
ServiceMonitoringServiceClient,
UptimeCheckServiceClient,
};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {
v3,
AlertPolicyServiceClient,
Expand Down
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": "756bc4dfc24e8bc4c5dd4116daa41a0440ebf5a0"
}
}
],
Expand Down
5 changes: 3 additions & 2 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
extra_proto_files=['google/cloud/common_resources.proto']
)

s.copy(library, excludes=["src/index.ts", "README.md", "package.json"])
s.copy(library, excludes=["README.md", "package.json"])

common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src')
templates = common_templates.node_library(
source_location="build/src", versions=["v3"], default_version="v3")
s.copy(templates)

node.postprocess_gapic_library()

0 comments on commit 4e0e5bb

Please sign in to comment.