Files
shane d873402ac5 raea goal is the loop, raea make the asset tools (#269)
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
2026-11-29 18:43:09 -08:00

40 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "raea add"
summary: "Add, remove and install npm packages for a project, with no Node or npm: raea.lock and node_modules."
order: 26
sources: ["io/npm/src/lib.rs"]
---
A composition can import npm packages. `raea add` resolves them, fetches each tarball once into a store every project
shares (`~/.raea/npm/store`, checked against the registry's hash) and lays out `node_modules` the way pnpm does. The
resolution is kept in `raea.lock` beside `package.json`, so an install with nothing new asks the registry nothing.
```sh
raea add d3-shape@^3 culori
raea add --dev @types/d3-shape
raea remove culori
raea install --offline
```
Install scripts never run, since there is no Node to run them; a package that needs one is named in the report.
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
## Usage
```sh
raea add PKG[@RANGE]... [--dev] | remove NAME... | install [--offline] [--in DIR] (npm packages for the project: raea.lock, node_modules)
```
Headless: it needs nothing running and opens no window. Takes any number of arguments besides its flags.
## Flags
| Flag | Takes | What it does |
| --- | --- | --- |
| `--dev` | – | Add the packages as dev dependencies. |
| `--in` | `DIR` | The project folder holding `package.json` (the current folder by default). |
| `--offline` | – | With `install`: use only what `raea.lock` and the store already have, asking the registry nothing. |
<!-- generated:end -->