rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[rush-lib] Prioritise new subspace config via a new .npmrc template file

Open pedro-gomes-92 opened this issue 9 months ago • 0 comments

Summary

Applies more accurate subspace configurations via rush init-subspace

Details

When creating a new subspace via rush init-subspace, the rush .npmrc template might not be proper for the specific subspace. Instead it should rely on a empty .npmrc, so that the subspace can initially use the same configuration as the monorepository, i.e. common/config/rush/.npmrc.

How it was tested

  • Create a repository with subspaces enabled: https://rushjs.io/pages/advanced/subspaces/
  • Run rush init-subspace --name test

Check the common/config/subspaces/test/.npmrc contains an empty configuration.

pedro-gomes-92 avatar Feb 11 '25 07:02 pedro-gomes-92