-
Notifications
You must be signed in to change notification settings - Fork 43
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
Build/npm ignore file #936
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks @andreivladbrg, just FYI in the future, you can also add me as a co-author. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not merge this as is.
we should not use a .npmignore
file because it adds very complicated logic when files
are used at the same time.
I am no longer able to find the reference for this but I left a comment in a Medium post about this issue many years ago.
edit: found it:
which commit are you referring to? i used
sheesh, didn't know about this
do you have any suggestion? |
All I meant is that instead of cherrypicking, you could have added me as a co-author. Judt FYI. Cherrypicking was fine in this case. re sheesh - just use {
"files": ["!test/utils/*.t.sol"]
} Also, why not ignore all |
@PaulRBerg I've added this in https://app.warp.dev/block/CRhLQnKpcZGWmIdLnGpveL what if we include this CLI in the prepack: "find . -name 'test/utils/*.t.sol' -delete", and after we can |
The negative globs should definitely work - make sure to put it at the end of the array in |
It appears that I was wrong - negative globs are not supported in the Therefore, it's impossible to ignore the I pushed a commit to add an It should be working now - please double-check before merging @andreivladbrg @smol-ninja. Then, squash and merge, please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm now
build: exclude *.t.sol files from NPM package
build: add "!test/utils/*.t.sol" in package json files
Thanks @PaulRBerg for the fix. It seems to be working now: https://app.warp.dev/block/8z3gVbenfdyKFq3RsDoFKj |
30e2454
to
0b41622
Compare
great, ty to both🚀 |
* build: add npm ignore file build: exclude *.t.sol files from NPM package * test: absolute paths in precompiles test * build: remove .npmignore build: add "!test/utils/*.t.sol" in package json files * build: npm ignore file in test utils --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me>
* build: add npm ignore file build: exclude *.t.sol files from NPM package * test: absolute paths in precompiles test * build: remove .npmignore build: add "!test/utils/*.t.sol" in package json files * build: npm ignore file in test utils --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me>
.t.sol
files from NPM package #935@PaulRBerg I've also included your commit