diff --git a/owlbot.py b/owlbot.py index f3e6252cc..fb4ebecc1 100644 --- a/owlbot.py +++ b/owlbot.py @@ -12,16 +12,22 @@ # See the License for the specific language governing permissions and # limitations under the License. -import synthtool.languages.node as node +from synthtool.languages import node +from synthtool import shell +from synthtool.log import logger # Generate JS samples from TS. -node.typeless_samples_hermetic() +# node.typeless_samples_hermetic() # We need to run this before the main owlbot processing, to make # sure quickstart.js gets gts fixed before the README is generated. # This needs to be worked out more properly, this is temporary. +logger.debug("Run typeless sample bot") node.install() -node.fix() +shell.run(["npm", "run", "typeless"]) + +# node.fix() + # Main OwlBot processing. node.owlbot_main(templates_excludes=[ diff --git a/package.json b/package.json index c2b0ff7c4..c5d3dcc27 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,9 @@ "predocs-test": "npm run docs", "benchwrapper": "node bin/benchwrapper.js", "prelint": "cd samples; npm link ../; npm install", - "precompile": "gts clean" + "precompile": "gts clean", + "typeless": "npx typeless-sample-bot --outputpath samples --targets samples --recursive", + "posttypeless": "cd samples; npm i; cd ..; npm run fix" }, "dependencies": { "@google-cloud/paginator": "^5.0.0", @@ -63,6 +65,7 @@ "p-defer": "^3.0.0" }, "devDependencies": { + "@google-cloud/typeless-sample-bot": "^2.1.0", "@grpc/proto-loader": "^0.7.0", "@opentelemetry/core": "^1.17.0", "@opentelemetry/sdk-trace-base": "^1.17.0", diff --git a/test/pubsub.ts b/test/pubsub.ts index df330f692..d4ceef18b 100644 --- a/test/pubsub.ts +++ b/test/pubsub.ts @@ -308,6 +308,7 @@ describe('PubSub', () => { const options: pubsubTypes.ClientConfig = { enableOpenTelemetryTracing: true, }; + // eslint-disable-next-line @typescript-eslint/no-unused-vars const pubsub = new PubSub(options); assert.strictEqual( tracing.isEnabled(),