diff --git a/packages/google-cloud-tasks/package.json b/packages/google-cloud-tasks/package.json index 7e0671298e9..8904dcbe91f 100644 --- a/packages/google-cloud-tasks/package.json +++ b/packages/google-cloud-tasks/package.json @@ -30,7 +30,7 @@ "test": "c8 mocha build/test", "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", "system-test": "mocha build/system-test", - "lint": "gts fix", + "lint": "gts check", "fix": "gts fix", "docs": "jsdoc -c .jsdoc.js", "docs-test": "linkinator docs", @@ -39,7 +39,8 @@ "compile-protos": "compileProtos src", "predocs-test": "npm run docs", "prepare": "npm run compile", - "prelint": "cd samples; npm link ../; npm install" + "prelint": "cd samples; npm link ../; npm install", + "precompile": "gts clean" }, "dependencies": { "google-gax": "^2.1.0" diff --git a/packages/google-cloud-tasks/synth.py b/packages/google-cloud-tasks/synth.py index 6f86fd51712..06476dec0a2 100644 --- a/packages/google-cloud-tasks/synth.py +++ b/packages/google-cloud-tasks/synth.py @@ -16,8 +16,8 @@ import synthtool as s import synthtool.gcp as gcp +import synthtool.languages.node as node import logging -import subprocess logging.basicConfig(level=logging.DEBUG) @@ -51,7 +51,4 @@ '"max_rpc_timeout_millis": 60000', '"max_rpc_timeout_millis": 20000') -# Node.js specific cleanup -subprocess.run(["npm", "install"]) -subprocess.run(["npm", "run", "fix"]) -subprocess.run(['npx', 'compileProtos', 'src']) +node.postprocess_gapic_library()