Decision needed: does quak publish to npm? #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Question
package.jsonis shaped like a publishable library —main,types,bin,files, and ahomepage/repositorypointing atgit.eeqj.de. But there is nopublishConfig, no.npmrc, and the namequakis unscoped.Before 1.0.0 I need to know which of these you want, because it changes the packaging work:
Option A — publish to the public npm registry as
quak(recommended if the name is free).The README's
import { Client } from "quak"example then actually works for a stranger.Requires the name to be available, an npm account/token, and a
publishConfig.Option B — publish to a scoped name (
@sneak/quak) on the public registry.Immune to name squatting. The README import line changes.
Option C — publish to a private/self-hosted registry.
Needs
publishConfig.registryand a decision about where.Option D — do not publish at all; consumers install from the git URL.
Then
files,main,typesandbinare still worth getting right (a git install stillruns
prepare), but no registry credentials or release workflow are needed, and the README'sGetting Started should show a git-URL install rather than implying an npm package.
Recommendation: Option A if
quakis available on npm, otherwise Option B. The libraryhalf of this project is only useful to other people if it is installable by name, and that is
the stated point of splitting library from CLI.
No work is blocked on this today — the packaging-metadata issue is correct under every option.
It becomes blocking at tag time.