You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the @nx-tools/nx-container plugin generates Dockerfiles with npm commands for package installations, regardless of the package manager set in the nx.json file. To enhance compatibility and streamline development workflows, it would be beneficial for the plugin to dynamically adjust the Dockerfile to use pnpm commands when the packageManager setting in nx.json is set to 'pnpm'.
Proposed Feature:
Detect packageManager Setting:
Modify the Dockerfile generation logic to read the packageManager setting from nx.json.
Conditional Command Generation:
If packageManager is set to 'pnpm', use pnpm commands for installing packages in the generated Dockerfile.
Otherwise, default to npm commands.
Example Implementation:
Current command with npm:
RUN npm install --omit=dev
Desired command with pnpm:
RUN pnpm install --prod
Thank you for considering this feature request. I believe it will significantly benefit the Nx community by providing better integration with pnpm.
The text was updated successfully, but these errors were encountered:
Description:
Currently, the
@nx-tools/nx-container
plugin generates Dockerfiles with npm commands for package installations, regardless of the package manager set in the nx.json file. To enhance compatibility and streamline development workflows, it would be beneficial for the plugin to dynamically adjust the Dockerfile to use pnpm commands when thepackageManager
setting in nx.json is set to 'pnpm'.Proposed Feature:
Detect packageManager Setting:
packageManager
setting from nx.json.Conditional Command Generation:
packageManager
is set to 'pnpm', use pnpm commands for installing packages in the generated Dockerfile.Example Implementation:
Current command with npm:
RUN npm install --omit=dev
Desired command with pnpm:
RUN pnpm install --prod
Thank you for considering this feature request. I believe it will significantly benefit the Nx community by providing better integration with pnpm.
The text was updated successfully, but these errors were encountered: