Skip to content

Instantly share code, notes, and snippets.

@israelss
Created March 27, 2022 20:30
Show Gist options
  • Save israelss/fb462071eb6dff7f9c8f4181cde35ce9 to your computer and use it in GitHub Desktop.
Save israelss/fb462071eb6dff7f9c8f4181cde35ce9 to your computer and use it in GitHub Desktop.
Find out what will be published to npm in a package without actually publishing it
if you want to find out what files npm will publish into the tarball without actually publishing, you can use this little one-liner:
npm pack && tar -xvzf *.tgz && rm -rf package *.tgz
Found @ https://medium.com/@jdxcode/for-the-love-of-god-dont-use-npmignore-f93c08909d8d in 2022-03-27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment