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

fix(package.json): remove unnecessary files in published package #227

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

manudeli
Copy link
Contributor

@manudeli manudeli commented Dec 11, 2022

There is unnecessary files in user of this packages(@h6s/table, @h6s/calendar)

You can see unnecessary files(tsconfig.json, playwright.config.ts, src, .e2e) if install this packages.
image

Solution: How about using files field of package.json.

I used files filed as ["dist", "esm"], but we don't have to worry about ignoring necessary files like package.json, README, LICENSE that almost be used as filename in @h6s/table, @h6s/calendar. because below filename will be contained in package defaultly.

Certain files are always included, regardless of settings:

  • package.json
  • README
  • LICENSE / LICENCE
  • The file in the "main" field
  • README & LICENSE can have any case and extension.

package.json have to narrow files to publish package contain only necessary. by using files field, we can narrow package's files. so I added files field

{
  "files": [
    "dist",
    "esm"
  ],
}

@manudeli manudeli requested a review from JaeYeopHan as a code owner December 11, 2022 16:52
@height
Copy link

height bot commented Dec 11, 2022

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@netlify
Copy link

netlify bot commented Dec 11, 2022

Deploy Preview for h6s-react-examples failed.

Name Link
🔨 Latest commit c68e494
🔍 Latest deploy log https://app.netlify.com/sites/h6s-react-examples/deploys/63960acbcde5220008c27ebf

@netlify
Copy link

netlify bot commented Dec 11, 2022

Deploy Preview for storybook-h6s ready!

Name Link
🔨 Latest commit c68e494
🔍 Latest deploy log https://app.netlify.com/sites/storybook-h6s/deploys/63960acb8f8ab90008f65d60
😎 Deploy Preview https://deploy-preview-227--storybook-h6s.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 11, 2022

Deploy Preview for h6s-dev canceled.

Name Link
🔨 Latest commit c68e494
🔍 Latest deploy log https://app.netlify.com/sites/h6s-dev/deploys/63960acb616b1f0008760583

Copy link
Member

@SoYoung210 SoYoung210 left a comment

Choose a reason for hiding this comment

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

Thanks! 💜 It will be reflected in the release of the next version. (with some patches)

@SoYoung210 SoYoung210 merged commit fb0f783 into h6s-dev:main Dec 12, 2022
github-actions bot pushed a commit that referenced this pull request Dec 13, 2022
# [@h6s/calendar-v1.0.7-alpha.1](https://github.com/h6s-dev/h6s/compare/@h6s/calendar-v1.0.6...@h6s/calendar-v1.0.7-alpha.1) (2022-12-13)

### Bug Fixes

* **package.json:** remove unnecessary files in published package ([#227](#227)) ([fb0f783](fb0f783))
@github-actions
Copy link
Contributor

🎉 This PR is included in version @h6s/calendar-v1.0.7-alpha.1 🎉

github-actions bot pushed a commit that referenced this pull request Dec 13, 2022
# [@h6s/table-v1.0.4-alpha.1](https://github.com/h6s-dev/h6s/compare/@h6s/table-v1.0.3...@h6s/table-v1.0.4-alpha.1) (2022-12-13)

### Bug Fixes

* **@h6s/table:** trigger release ([93d6b04](93d6b04))
* **package.json:** remove unnecessary files in published package ([#227](#227)) ([fb0f783](fb0f783))
@github-actions
Copy link
Contributor

🎉 This PR is included in version @h6s/table-v1.0.4-alpha.1 🎉

github-actions bot pushed a commit that referenced this pull request Dec 20, 2022
# [@h6s/calendar-v1.0.7](https://github.com/h6s-dev/h6s/compare/@h6s/calendar-v1.0.6...@h6s/calendar-v1.0.7) (2022-12-20)

### Bug Fixes

* **package.json:** remove unnecessary files in published package ([#227](#227)) ([fb0f783](fb0f783))
@github-actions
Copy link
Contributor

🎉 This PR is included in version @h6s/calendar-v1.0.7 🎉

github-actions bot pushed a commit that referenced this pull request Dec 20, 2022
# [@h6s/table-v1.0.4](https://github.com/h6s-dev/h6s/compare/@h6s/table-v1.0.3...@h6s/table-v1.0.4) (2022-12-20)

### Bug Fixes

* **package.json:** remove unnecessary files in published package ([#227](#227)) ([fb0f783](fb0f783))
@github-actions
Copy link
Contributor

🎉 This PR is included in version @h6s/table-v1.0.4 🎉

@manudeli
Copy link
Contributor Author

@JaeYeopHan @SoYoung210 Could you add me in https://github.com/h6s-dev/h6s#contributors- as bug(🐛)?
image

I thought this PR can be bug. but If you think this PR is another emoji key, It is also good for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants