-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds PNPM and Bun package managers as subsets. However, Bun tests are currently disabled due to an issue where packages from the local registry are only partially extracted.
- Loading branch information
1 parent
8d256b0
commit c545f77
Showing
10 changed files
with
88 additions
and
65 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
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
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 |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import { getGlobalVariable } from '../utils/env'; | ||
import { globalNpm } from '../utils/process'; | ||
|
||
const NPM_VERSION = '7.24.0'; | ||
const YARN_VERSION = '1.22.18'; | ||
const NPM_VERSION = '7.24.0'; // TODO: update to latest and fix tests. | ||
const YARN_VERSION = '1.22.22'; | ||
const PNPM_VERSION = '9.3.0'; | ||
const BUN_VERSION = '1.1.13'; | ||
|
||
export default async function () { | ||
const argv = getGlobalVariable('argv'); | ||
if (argv.noglobal) { | ||
return; | ||
} | ||
|
||
const testRegistry: string = getGlobalVariable('package-registry'); | ||
const testRegistry = getGlobalVariable('package-registry'); | ||
|
||
// Install global Angular CLI being tested, npm+yarn used by e2e tests. | ||
await globalNpm([ | ||
'install', | ||
'--global', | ||
`--registry=${testRegistry}`, | ||
'@angular/cli', | ||
`bun@${BUN_VERSION}`, | ||
`npm@${NPM_VERSION}`, | ||
`yarn@${YARN_VERSION}`, | ||
`pnpm@${PNPM_VERSION}`, | ||
]); | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,9 @@ export default async function () { | |
// older versions @angular/cli packages which would cause `npm install` during `ng update` to fail. | ||
restoreRegistry = await createProjectFromAsset('15.0-project', true); | ||
|
||
// CLI project version | ||
const cliMajorProjectVersion = 15; | ||
|
||
// If using npm, enable legacy peer deps mode to avoid defects in npm 7+'s peer dependency resolution | ||
// Example error where 11.2.14 satisfies the SemVer range ^11.0.0 but still fails: | ||
// npm ERR! Conflicting peer dependency: @angular/[email protected] | ||
|
@@ -25,12 +28,6 @@ export default async function () { | |
await appendFile('.npmrc', '\nlegacy-peer-deps=true'); | ||
} | ||
|
||
// CLI project version | ||
const { version: cliVersion } = JSON.parse( | ||
await readFile('./node_modules/@angular/cli/package.json'), | ||
); | ||
const cliMajorProjectVersion = new SemVer(cliVersion).major; | ||
|
||
// CLI current version. | ||
const cliMajorVersion = getNgCLIVersion().major; | ||
|
||
|
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
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