Skip to content

2026.11.24.1: -o <directory>/ writes a provided format's distributable with the outputs it reads beside it - #1012

Merged
Sunrisepeak merged 3 commits into
mainfrom
fix/provided-format-output-dir
Nov 24, 2026
Merged

Sunrisepeak merged 3 commits into
mainfrom
fix/provided-format-output-dir

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

mcpp pack --pkg-format <provided format> -o <directory>/ copied only the distributable, which is the output no other action consumes. A web page from --pkg-format web (mcpp-plugins dist-web) therefore arrived in the directory as index.html alone, without its .js, its .wasm and its deployed files, and loaded nothing. This was measured with mcpp-plugins' tests/web-consumer.

Now the distributable is written together with the outputs it consumed that lie below its own directory, at their places relative to it. Each destination is replaced, and nothing else in the directory is touched.

  • SPEC-014 §6 (v2.8); docs/30 in English and Chinese; CHANGELOG.
  • e2e formats/1160: a local provider writes a page that consumes assets/data.txt. Both files arrive in dist/site/, and a file in a sibling directory is kept.
  • With this build, tests/web-consumer packed to -o dist/new/ gives index.html, web-consumer.js, web-consumer.wasm and assets/greeting.txt, and node web-consumer.js runs.

…e outputs it reads beside it

A provider's distributable is the output no other action consumes. Copied
alone into the -o directory, a web page arrived without its .js, its .wasm
and its deployed files. The distributable is now written with the outputs
it consumed that lie below its own directory, at their places relative to
it (SPEC-014 §6, v2.8; e2e formats/1160).
@Sunrisepeak
Sunrisepeak merged commit 5032751 into main Nov 24, 2026
53 checks passed
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