Skip to content

Commit

Permalink
chore: run fix instead of lint in synthfile (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Apr 15, 2020
1 parent 6c66364 commit 37b02da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-asset/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
items=json.load(f)
content =[item for item in items if all([(x not in item) for x in remove_proto_keywords])]
new_file=json.dumps(content, indent=2) + '\n'
with open(file, 'w') as f:
with open(file, 'w') as f:
f.write(new_file)

# Node.js specific cleanup
subprocess.run(['npm', 'install'])
subprocess.run(['npm', 'run', 'lint'])
subprocess.run(['npm', 'run', 'fix'])
subprocess.run(['npx', 'compileProtos', 'src'])

0 comments on commit 37b02da

Please sign in to comment.