-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(misc): dot nx setup shouldn't include target defaults (#23180)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior - `nx add @nx/gradle` installs latest version - `nx init` sets up target defaults - `nx add package@beta` will add `beta` as the version, rather than resolving it to the tag. ## Expected Behavior - `nx add @nx/gradle` installs version matching `nx` - `nx init` lets plugin handle settings - `nx add package@beta` will add the latest version matching the beta tag ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
- Loading branch information
1 parent
84eb280
commit 30446df
Showing
4 changed files
with
48 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { nxVersion } from '../../utils/versions'; | ||
import { coreNxPluginVersions } from './add'; | ||
|
||
describe('nx core packages', () => { | ||
it('should map nx packages to nx version', () => { | ||
expect(coreNxPluginVersions.get('@nx/workspace')).toEqual(nxVersion); | ||
}); | ||
|
||
it('should map nx-cloud to latest', () => { | ||
expect(coreNxPluginVersions.get('@nrwl/nx-cloud')).toEqual('latest'); | ||
expect(coreNxPluginVersions.get('nx-cloud')).toEqual('latest'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters