mix tessera.install (Noizu.Tessera v0.2.0)

Copy Markdown View Source

Prepares a Hologram host app's assets/ for tessera components:

  • creates or merges assets/package.json, adding "@noizu/tessera-core": "file:<relpath to deps/noizu_tessera/priv/js>" and "lit": "^3", plus file: entries for every dep app that ships its own tessera priv/js runtime. Idempotent: existing keys are never overwritten, unrelated keys preserved;
  • runs npm install in assets/ unless --no-npm is given.

Hologram resolves bare npm specifiers through the host's assets/node_modules (NODE_PATH), so components' .mjs files can import @noizu/tessera-core without any further wiring.

mix tessera.install
mix tessera.install --no-npm