softprops / serverless-rust

⚡ 🦀 a serverless framework plugin for rustlang applications
https://www.npmjs.com/package/serverless-rust
MIT License
541 stars 81 forks source link

limit what gets published to npm #27

Closed softprops closed 5 years ago

softprops commented 5 years ago

💡 Feature description

the last published tarball looked like this

make publish
npm notice
npm notice 📦  serverless-rust@0.3.1
npm notice === Tarball Contents ===
npm notice 764B   package.json
npm notice 151B   .eslintrc
npm notice 322B   .travis.yml
npm notice 3.3kB  CHANGELOG.md
npm notice 4.9kB  index.js
npm notice 1.1kB  LICENSE
npm notice 22B    Makefile
npm notice 3.4kB  README.md
npm notice 601B   .github/ISSUE_TEMPLATE/bug_report.md
npm notice 334B   .github/ISSUE_TEMPLATE/feature_request.md
npm notice 407B   .github/PULL_REQUEST_TEMPLATE.md
npm notice 48.7kB tests/test-func/Cargo.lock
npm notice 167B   tests/test-func/Cargo.toml
npm notice 96B    tests/test-func/package.json
npm notice 222B   tests/test-func/serverless.yml
npm notice 216B   tests/test-func/src/main.rs
npm notice 14B    tests/test-func/test-event.json
npm notice 1.5kB  tests/test.sh
npm notice === Tarball Details ===
npm notice name:          serverless-rust
npm notice version:       0.3.1
npm notice package size:  15.2 kB
npm notice unpacked size: 66.2 kB
npm notice shasum:        a4767672a6cceb143ed58c31ea4602daae59bfad
npm notice integrity:     sha512-ZpWwNUuEmoxO4[...]G2nJ0EwhpISYA==
npm notice total files:   18
npm notice
+ serverless-rust@0.3.1

there's more packaged there that is actually needed

let's limit this to only what is actually needed by consumers

💻 Basic example