Skip to content

feat: store packageManager property also inside the lock file #465

@ruscon

Description

@ruscon

Our current flow:
We use docker + pnpm fetch

COPY --chown=node:node pnpm-*.yaml .npmrc ./
RUN npm install -g pnpm@^8 # curernt usage without corepack
# RUN corepack enable #  <= but we want this one
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm fetch --loglevel=warn --ignore-scripts

This means we don't cache the package.json file before the pnpm fetch execution.
This allows us to worry about package.json changes.
But corepack will always install the latest version of pnpm instead of a specific one.

If store the packageManager property in a lock file, this will solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions