Provide environment information
N/A - This affects the generated Dockerfile, not the local environment
Describe the bug
The trigger deploy command generates a Dockerfile that hardcodes npm i --no-audit --no-fund --no-save --no-package-lock on line 872 of packages/cli-v3/src/deploy/buildImage.ts, regardless of the project's actual package manager.
This breaks Yarn workspaces because:
- npm doesn't understand Yarn's
workspaces.nohoist configuration
- npm doesn't support Yarn's selective resolutions
- npm installs packages in different locations than Yarn, breaking patch-package setups
Expected behavior: The CLI should detect the package manager from lockfiles (yarn.lock, pnpm-lock.yaml, package-lock.json) and use the appropriate install command:
yarn install --frozen-lockfile for Yarn
pnpm install --frozen-lockfile for pnpm
npm ci for npm
Reproduction repo
n/a
To reproduce
- Create a Yarn monorepo with workspaces.nohoist in package.json
- Run
trigger deploy
- Observe build failure with npm workspace errors, or packages installed in wrong locations
Additional information
No response
Provide environment information
N/A - This affects the generated Dockerfile, not the local environment
Describe the bug
The
trigger deploycommand generates a Dockerfile that hardcodesnpm i --no-audit --no-fund --no-save --no-package-lockon line 872 ofpackages/cli-v3/src/deploy/buildImage.ts, regardless of the project's actual package manager.This breaks Yarn workspaces because:
workspaces.nohoistconfigurationExpected behavior: The CLI should detect the package manager from lockfiles (yarn.lock, pnpm-lock.yaml, package-lock.json) and use the appropriate install command:
yarn install --frozen-lockfilefor Yarnpnpm install --frozen-lockfilefor pnpmnpm cifor npmReproduction repo
n/a
To reproduce
trigger deployAdditional information
No response