Skip to content

m devcontainer pnpm_setup

Setup pnpm in the devcontainer.

This command is meant run from inside the devcontainer. It will create several symbolic links so that the pnpm data may be stored in a volume and thus be able to be shared with other devcontainers.

Source code in m/cli/commands/devcontainer/pnpm_setup.py
class Arguments(BaseModel):
    """Setup pnpm in the devcontainer.

    This command is meant run from inside the devcontainer. It will
    create several symbolic links so that the pnpm data may be stored in a
    volume and thus be able to be shared with other devcontainers.
    """

    work_dir: str = Arg(
        help='the work directory containing package.json',
        positional=True,
        required=True,
    )

    pnpm_dir: str = Arg(
        help='the directory where pnpm data will be stored',
        positional=True,
        required=True,
    )

Positional arguments

work_dir

the work directory containing package.json

pnpm_dir

the directory where pnpm data will be stored