Skip to content

prepare: build the scripted variant too - #17

Merged
Kinflou merged 1 commit into
mainfrom
feat/prepare-builds-scripted
Sep 3, 2026
Merged

prepare: build the scripted variant too#17
Kinflou merged 1 commit into
mainfrom
feat/prepare-builds-scripted

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 3, 2026

Copy link
Copy Markdown
Member

The playground lazy-loads a Rhai-enabled build; prepare only made the lean
one. Now it builds both:

  • pkg/--no-default-features (lean)
  • pkg-script/ — default features (Rhai)

files ships both. Consumers import what they need —
comline-simulator (→ pkg/) or
comline-simulator/pkg-script/comline_simulator.js. A lean-only consumer
can set COMLINE_SIMULATOR_SCRIPT=0 before npm install to skip the
scripted build.

Verified prepare.sh locally (both dirs produced, both export Sim) and
npm pack --dry-run (both under files, no source leak). Unblocks the
playground migration off its wrapper crate.

`prepare` now emits `pkg-script/` (default features, Rhai) alongside `pkg/`
(lean), and `files` ships both. The playground lazy-loads
`comline-simulator/pkg-script/comline_simulator.js` when a `script`
behaviour is picked; the tutorial only imports the lean `pkg/`.

`COMLINE_SIMULATOR_SCRIPT=0` before the install skips the scripted build
for a lean-only consumer.
@Kinflou
Kinflou merged commit c3ac42f into main Sep 3, 2026
1 check passed
@Kinflou
Kinflou deleted the feat/prepare-builds-scripted branch September 3, 2026 18:16
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