Skip to content

Commit ed95908

Browse files
build: use bazel for library generation (#477)
* build: use bazel for library generation * chore: trigger CI
1 parent c6b65bd commit ed95908

File tree

2 files changed

+13
-20
lines changed

2 files changed

+13
-20
lines changed

packages/google-cloud-language/synth.metadata

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-language.git",
7-
"sha": "ec8af51419d1c0ccaa6e73cdee4bbcb4379b0d42"
6+
"remote": "git@github.com:googleapis/nodejs-language.git",
7+
"sha": "2361fd3f01eac2216a7c2d98e026a70286ce0731"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1",
15-
"internalRef": "310168181"
14+
"sha": "a60b165895ad1f100d7014c74b7df512f9377fdb",
15+
"internalRef": "318104666"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "b10590a4a1568548dd13cfcea9aa11d40898144b"
22+
"sha": "ce68c0e70d36c93ffcde96e9908fb4d94aa4f2e4"
2323
}
2424
}
2525
],
@@ -29,17 +29,17 @@
2929
"source": "googleapis",
3030
"apiName": "language",
3131
"apiVersion": "v1",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
32+
"language": "nodejs",
33+
"generator": "bazel"
3434
}
3535
},
3636
{
3737
"client": {
3838
"source": "googleapis",
3939
"apiName": "language",
4040
"apiVersion": "v1beta2",
41-
"language": "typescript",
42-
"generator": "gapic-generator-typescript"
41+
"language": "nodejs",
42+
"generator": "bazel"
4343
}
4444
}
4545
]

packages/google-cloud-language/synth.py

+4-11
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,13 @@
88
AUTOSYNTH_MULTIPLE_COMMITS = True
99

1010

11-
gapic = gcp.GAPICMicrogenerator()
11+
gapic = gcp.GAPICBazel()
1212
versions = ['v1', 'v1beta2']
13-
# tasks has two product names, and a poorly named artman yaml
1413
for version in versions:
15-
library = gapic.typescript_library(
14+
library = gapic.node_library(
1615
'language',
17-
generator_args={
18-
"grpc-service-config": f"google/cloud/language/{version}/language_grpc_service_config.json",
19-
"package-name": f"@google-cloud/language"
20-
},
21-
proto_path=f'/google/cloud/language/{version}',
22-
version=version)
23-
24-
# skip index, protos, package.json, and README.md
16+
version,
17+
)
2518
s.copy(
2619
library,
2720
excludes=['package.json', 'README.md'])

0 commit comments

Comments
 (0)