diff --git a/packages/google-cloud-recaptchaenterprise/package.json b/packages/google-cloud-recaptchaenterprise/package.json index fbf61c6c451..2730400a896 100644 --- a/packages/google-cloud-recaptchaenterprise/package.json +++ b/packages/google-cloud-recaptchaenterprise/package.json @@ -47,7 +47,7 @@ "webpack-cli": "^3.3.10" }, "scripts": { - "lint": "gts fix", + "lint": "gts check", "fix": "gts fix", "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", "system-test": "mocha build/system-test", @@ -59,7 +59,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" }, "license": "Apache-2.0", "engines": { diff --git a/packages/google-cloud-recaptchaenterprise/synth.py b/packages/google-cloud-recaptchaenterprise/synth.py index 7e3226740e7..3b87a2b80d6 100644 --- a/packages/google-cloud-recaptchaenterprise/synth.py +++ b/packages/google-cloud-recaptchaenterprise/synth.py @@ -15,7 +15,7 @@ import synthtool as s import synthtool.gcp as gcp -import subprocess +import synthtool.languages.node as node import logging logging.basicConfig(level=logging.DEBUG) @@ -43,7 +43,4 @@ templates = common_templates.node_library(source_location='build/src') s.copy(templates) -# Node.js specific cleanup -subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'fix']) -subprocess.run(['npx', 'compileProtos', 'src']) +node.postprocess_gapic_library()