Skip to content

Commit d5699a3

Browse files
chore: update npm scripts and synth.py (#314)
Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool.
1 parent 8889633 commit d5699a3

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/google-cloud-resourcemanager/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"presystem-test": "npm run compile",
4141
"docs-test": "linkinator docs",
4242
"predocs-test": "npm run docs",
43-
"prelint": "cd samples; npm link ../; npm i"
43+
"prelint": "cd samples; npm link ../; npm install",
44+
"precompile": "gts clean"
4445
},
4546
"dependencies": {
4647
"@google-cloud/common": "^3.0.0",
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import synthtool as s
22
import synthtool.gcp as gcp
3+
import synthtool.languages.node as node
34
import logging
4-
import subprocess
55

66
logging.basicConfig(level=logging.DEBUG)
77

@@ -10,3 +10,5 @@
1010
common_templates = gcp.CommonTemplates()
1111
templates = common_templates.node_library(source_location="build/src")
1212
s.copy(templates)
13+
node.install()
14+
node.fix()

0 commit comments

Comments
 (0)