Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit files to be included in the package #56

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

ocean90
Copy link
Collaborator

@ocean90 ocean90 commented Apr 26, 2021

See https://docs.npmjs.com/cli/v7/configuring-npm/package-json#files

Before
❯ npm pack
npm notice
npm notice πŸ“¦  @midzer/tobii@2.0.7
npm notice === Tarball Contents ===
npm notice 8.2kB  .eslintrc
npm notice 1.4kB  .stylelintrc
npm notice 4.8kB  dist/tobii.min.css
npm notice 672B   demo/index.html
npm notice 688B   demo/modern.html
npm notice 173B   src/js/browser.js
npm notice 553B   src/js/polyfill/CustomEvent.js
npm notice 42.2kB src/js/index.js
npm notice 17.3kB dist/tobii.js
npm notice 18.5kB dist/tobii.min.js
npm notice 17.6kB dist/tobii.modern.js
npm notice 17.4kB dist/tobii.module.js
npm notice 17.5kB dist/tobii.umd.js
npm notice 1.8kB  package.json
npm notice 1.1kB  LICENSE.md
npm notice 10.1kB README.md
npm notice 87B    src/scss/_functions.scss
npm notice 590B   src/scss/_variables.scss
npm notice 5.3kB  src/scss/tobii.scss
npm notice 28.5kB midzer-tobii-2.0.7.tgz
npm notice 640B   .github/FUNDING.yml
npm notice 1.1kB  .github/workflows/npm-publish.yml
npm notice === Tarball Details ===
npm notice name:          @midzer/tobii
npm notice version:       2.0.7
npm notice filename:      midzer-tobii-2.0.7.tgz
npm notice package size:  61.6 kB
npm notice unpacked size: 196.2 kB
npm notice shasum:        9dd4bf39bbbfa7c9b235b8739d67707054f13848
npm notice integrity:     sha512-SC9w6USHD/yXN[...]PavjA8U0I8nMg==
npm notice total files:   22
npm notice
midzer-tobii-2.0.7.tgz
After
❯ npm pack
npm notice
npm notice πŸ“¦  @midzer/tobii@2.0.7
npm notice === Tarball Contents ===
npm notice 4.8kB  dist/tobii.min.css
npm notice 173B   src/js/browser.js
npm notice 553B   src/js/polyfill/CustomEvent.js
npm notice 42.2kB src/js/index.js
npm notice 17.3kB dist/tobii.js
npm notice 18.5kB dist/tobii.min.js
npm notice 17.6kB dist/tobii.modern.js
npm notice 17.4kB dist/tobii.module.js
npm notice 17.5kB dist/tobii.umd.js
npm notice 1.8kB  package.json
npm notice 1.1kB  LICENSE.md
npm notice 10.1kB README.md
npm notice 87B    src/scss/_functions.scss
npm notice 590B   src/scss/_variables.scss
npm notice 5.3kB  src/scss/tobii.scss
npm notice === Tarball Details ===
npm notice name:          @midzer/tobii
npm notice version:       2.0.7
npm notice filename:      midzer-tobii-2.0.7.tgz
npm notice package size:  28.5 kB
npm notice unpacked size: 155.0 kB
npm notice shasum:        dab4506b759d1d6db7bac3b8dffe4993c0ca5f92
npm notice integrity:     sha512-pPa3+zIBF5Kt0[...]q281BxO55YuFg==
npm notice total files:   15
npm notice
midzer-tobii-2.0.7.tgz

@ocean90 ocean90 added the enhancement New feature or request label Apr 26, 2021
@ocean90 ocean90 requested a review from midzer April 26, 2021 18:12
Copy link
Owner

@midzer midzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!
I've never heard of files until now...

@midzer midzer merged commit 9dc48f9 into midzer:production Apr 26, 2021
@midzer
Copy link
Owner

midzer commented Apr 26, 2021

Thanks for you working on tobii @ocean90

Once #54 is confirmed, I'll do a new release.

@ocean90 ocean90 deleted the fix/package-json-files branch April 26, 2021 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants