meganrogge / template-string-converter

Autocorrect from quotes to backticks
MIT License
194 stars 24 forks source link

Exclude build dependencies from extension package #75

Closed kidonng closed 2 years ago

kidonng commented 2 years ago

I noticed the extension takes surprisingly large disk space:

$ du -sh ~/.vscode/extensions/meganrogge.template-string-converter-*/* | sort -h | tail -n4
 88K    /Users/kid/.vscode/extensions/meganrogge.template-string-converter-0.6.0/src
 88K    /Users/kid/.vscode/extensions/meganrogge.template-string-converter-0.6.0/template-string-converter-0.5.4.tgz
 19M    /Users/kid/.vscode/extensions/meganrogge.template-string-converter-0.6.0/node_modules
 20M    total

It seems to contain all the dependencies only needed for development, including a tarball of an old version! Excluding them from the package reduced the size from 5.84MB to merely 81.81KB.