Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Change API to support publishing non-directories #16

Closed
wants to merge 2 commits into from

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Oct 28, 2020

Note: This is a SemVer-major breaking change.

Change the interface to publish(manifest, tarData, opts) instead of
publish(folder, manifest, opts). The npm CLI has to pack the
directory in order to print out the list of files anyway, and tying the
publish command to only publishing folders makes certain use cases no
longer possible.

@isaacs isaacs requested a review from ruyadorno October 28, 2020 22:23
Note: This is a SemVer-major breaking change.

Change the interface to `publish(manifest, tarData, opts)` instead of
`publish(folder, manifest, opts)`.  The npm CLI has to pack the
directory in order to print out the list of files anyway, and tying the
publish command to _only_ publishing folders makes certain use cases no
longer possible.
@isaacs
Copy link
Contributor Author

isaacs commented Oct 28, 2020

I was a few commits behind, rebased onto latest.

isaacs added a commit to npm/cli that referenced this pull request Oct 28, 2020
isaacs added a commit to npm/cli that referenced this pull request Oct 28, 2020
isaacs added a commit to npm/cli that referenced this pull request Oct 28, 2020
Copy link
Contributor

@nlf nlf left a comment

Choose a reason for hiding this comment

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

lgtm!

@nlf nlf closed this in 9deb0db Nov 3, 2020
darcyclarke pushed a commit to npm/cli that referenced this pull request Nov 3, 2020
darcyclarke pushed a commit to npm/cli that referenced this pull request Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants