Skip to content

docs(publishing): scaffold a package with npm create malloy-package#332

Open
mlennie wants to merge 1 commit into
malloydata:mainfrom
mlennie:monty/document-create-malloy-package
Open

docs(publishing): scaffold a package with npm create malloy-package#332
mlennie wants to merge 1 commit into
malloydata:mainfrom
mlennie:monty/document-create-malloy-package

Conversation

@mlennie

@mlennie mlennie commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

The Quick Start opened by asking the reader to hand-build a package directory and a manifest. The scaffolder does that for them, registers the package so the server actually serves it, and sets up the workspace around it, so it belongs first, with the by-hand layout kept underneath for anyone who wants it.

Both the npm create and npx forms are shown, because they parse options differently and getting it wrong fails in a way a reader cannot reason about: npm create treats anything before a -- as one of its own options, so the separator is required, while npx forwards flags untouched and counts a -- as an extra argument. Verified against both entry points rather than assumed.

Both require Node, which is worth stating plainly on a page a non-developer may land on.

Do not merge before create-malloy-package is published to npm: it is unregistered today, so this page would tell readers to run a name anyone can take.

The Quick Start opened by asking the reader to hand-build a package directory
and a manifest. The scaffolder does that for them, registers the package so the
server actually serves it, and sets up the workspace around it, so it belongs
first, with the by-hand layout kept underneath for anyone who wants it.

Both the `npm create` and `npx` forms are shown, because they parse options
differently and getting it wrong fails in a way a reader cannot reason about:
`npm create` treats anything before a `--` as one of its own options, so the
separator is required, while `npx` forwards flags untouched and counts a `--` as
an extra argument. Verified against both entry points rather than assumed.

Both require Node, which is worth stating plainly on a page a non-developer may
land on.

Do not merge before `create-malloy-package` is published to npm: it is
unregistered today, so this page would tell readers to run a name anyone can
take.

Signed-off-by: Monty Lennie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant