-
Notifications
You must be signed in to change notification settings - Fork 36
Replace custom np
implementation with direct usage
#54
Conversation
You can try this out today via |
Could you point me to the thinking behind making |
I agree with @gr2m. Let's focus on the building/packaging only. |
So those two points under "We now address the original issues as follows" are still valid:
If you have other ideas on how to address those two issues, I'm definitely interested. This PR was actually an attempt to move closer to what you're describing, where we just wrap a recommended tool with good defaults/options instead of trying to build it ourselves. Let's see how this goes and we could always move to wrapping |
How about using I'm a big fan of what pika/pack is offering to solve (the multi env build part), but the publish part just doesn't fit in. I've never had problems using npm version & publish directly. However I have been struggling to incorporate pack into a monorepo Lerna + Yarn workspaces setup over the past weeks. Having multiple tools trying to "solve" the publish part is not helping. In case you're interested, the wip on that is here: async-library/react-async#44 |
I would suggest to create a separate package, e.g. |
@ghengeveld awesome, will check out react-async.
|
The other thing that this conversation is circling is: are these really just different commands on a single |
Honestly, |
@FredKSchott, I was thinking about that ever. Move the "runner" implementation to IMO, I still think |
resolves #51, resolves #48, resolves #44, resolves #41, resolves #20
Originally, @pika/pack forked the popular https://github.com/sindresorhus/np package so that it could support its own custom publish pipeline. Forking was chosen over using the package directly so that we would have complete control of the implementation & interface while working around some limitations in the library (specifically: always assuming the
pkg/
sub-directory to be published, and needing to run build after a version bump).Fast forward to today, and many of the reported issues with this library are related to our custom np fork/implementation. Meanwhile, the np package has continued to improve, fix bugs and add features.
This PR revisits this decision to fork np, and instead calls out to the library directly. This removes ~1000 lines of code from our package, adds new features & bug fixes, and greatly shrinks the complexity of what we need to maintain.
We now address the original issues as follows:
--contents pkg/
by default tonp
While requiring a version script is annoying, it's a worthwhile tradeoff that also allows for users to bring their own publish pipeline/tools if they don't want to use
@pika/pack publish
.