-
Notifications
You must be signed in to change notification settings - Fork 2
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
[fei5815.2.workaround] Add step to tidy up files #1024
Conversation
🦋 Changeset detectedLatest commit: 4dd9499 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1024 +/- ##
=======================================
Coverage 99.85% 99.85%
=======================================
Files 97 97
Lines 1392 1392
Branches 351 358 +7
=======================================
Hits 1390 1390
Misses 1 1
Partials 1 1 Continue to review full report in Codecov by Sentry.
|
Size Change: 0 B Total Size: 4.63 kB ℹ️ View Unchanged
|
What happens if we put a symlink to the .npmignore (or a copy of it) in each of the package directories? That would make sense that it wouldn't work for a global .npmignore and instead would be per-package. If that could work I'd definitely prefer that to a custom script. |
We already have the script - I just adapted it to use the The issue with a symlinked I can give that a try. If that works then we can drop the script entirely rather than just edit it, then keep the |
…nition references
65f6245
to
63eb72e
Compare
OK, I tried the symlinks in Wonder Blocks too (which does a publish of pre-release packages, making this easier to test) and it completely fails.
However, I think just having a copy of |
Summary:
It seems that
changesets publish
isn't honoring our root.npmignore
even thoughnpm pack
would. This works around that by borrowing some code from Wonder Blocks where we tidy up any ignored files that aren't source-controlled, reducing what we package.We also explicitly include things in each package.json.
This combination means we can easily exclude files and folders in the
dist
location, without having really explicitfiles
definitions that might be hard to maintain.Issue: FEI-5815
Test plan:
yarn build:types
and see the files being removed.