diff --git a/packages/google-cloud-memcache/package.json b/packages/google-cloud-memcache/package.json index 805b3d35366..704e02cdeb6 100644 --- a/packages/google-cloud-memcache/package.json +++ b/packages/google-cloud-memcache/package.json @@ -18,12 +18,13 @@ "predocs-test": "npm run docs", "docs-test": "linkinator docs", "fix": "gts fix", - "lint": "gts fix", + "lint": "gts check", "prelint": "cd samples; npm link ../; npm install", "prepare": "npm run compile-protos && npm run compile", "system-test": "c8 mocha build/system-test", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "test": "c8 mocha build/test" + "test": "c8 mocha build/test", + "precompile": "gts clean" }, "dependencies": { "google-gax": "^2.1.0" diff --git a/packages/google-cloud-memcache/synth.py b/packages/google-cloud-memcache/synth.py index 9edad64ef57..591d61d4e46 100644 --- a/packages/google-cloud-memcache/synth.py +++ b/packages/google-cloud-memcache/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) @@ -41,8 +41,4 @@ templates = common_templates.node_library(source_location='build/src') s.copy(templates, excludes=[]) -# Node.js specific cleanup -subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'fix']) -subprocess.run(['npx', 'compileProtos', 'src']) - +node.postprocess_gapic_library()