File tree Expand file tree Collapse file tree 4 files changed +10
-72
lines changed Expand file tree Collapse file tree 4 files changed +10
-72
lines changed Original file line number Diff line number Diff line change 1
1
import { MergeConfig } from '@angular/dev-infra-private/pr/merge/config' ;
2
+ import { determineMergeBranches } from '@angular/dev-infra-private/pr/merge/determine-merge-branches' ;
2
3
import { GithubConfig } from '@angular/dev-infra-private/utils/config' ;
3
- import { determineMergeBranches } from './scripts/determine-merge-branches' ;
4
4
5
5
/**
6
6
* Github configuration for the ng-dev command. This repository is
@@ -16,7 +16,11 @@ const github: GithubConfig = {
16
16
* are respected by the merge script (e.g. the target labels).
17
17
*/
18
18
const merge = ( ) : MergeConfig => {
19
- const { minor, patch} = determineMergeBranches ( github . owner , github . name ) ;
19
+ const currentVersion = require ( './package.json' ) . version ;
20
+ // We use the `@angular/cdk` as source of truth for the latest published version in NPM.
21
+ // Any package from the monorepo could technically work and result in the same version.
22
+ const { minor, patch} = determineMergeBranches ( currentVersion , '@angular/cdk' ) ;
23
+
20
24
return {
21
25
// By default, the merge script merges locally with `git cherry-pick` and autosquash.
22
26
// This has the downside of pull requests showing up as `Closed` instead of `Merged`.
Original file line number Diff line number Diff line change 43
43
"resync-caretaker-app" : " ts-node --project scripts/tsconfig.json scripts/caretaking/resync-caretaker-app-prs.ts" ,
44
44
"ts-circular-deps:check" : " yarn -s ts-circular-deps check --config ./src/circular-deps-test.conf.js" ,
45
45
"ts-circular-deps:approve" : " yarn -s ts-circular-deps approve --config ./src/circular-deps-test.conf.js" ,
46
- "ng-dev" : " ts-node -O {\\\" module\\\" :\\\" commonjs\\\" } ./node_modules/@angular/dev-infra-private/cli.js" ,
47
46
"merge" : " ng-dev pr merge" ,
48
47
"approve-api" : " node ./scripts/approve-api-golden.js"
49
48
},
71
70
"@angular-devkit/schematics" : " ^10.0.0-next.6" ,
72
71
"@angular/bazel" : " ^10.0.0-rc.0" ,
73
72
"@angular/compiler-cli" : " ^10.0.0-rc.0" ,
74
- "@angular/dev-infra-private" : " https://github.com/angular/dev-infra-private-builds.git#7f3e1227d199a55943152aac6119d40e1bbb028f " ,
73
+ "@angular/dev-infra-private" : " https://github.com/angular/dev-infra-private-builds.git#2ac83eb462cb25c46a761d34dec030e360055016 " ,
75
74
"@angular/platform-browser-dynamic" : " ^10.0.0-rc.0" ,
76
75
"@angular/platform-server" : " ^10.0.0-rc.0" ,
77
76
"@angular/router" : " ^10.0.0-rc.0" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 92
92
dependencies:
93
93
tslib "^1.9.0"
94
94
95
- "@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#7f3e1227d199a55943152aac6119d40e1bbb028f ":
95
+ "@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#2ac83eb462cb25c46a761d34dec030e360055016 ":
96
96
version "0.0.0"
97
- resolved "https://github.com/angular/dev-infra-private-builds.git#7f3e1227d199a55943152aac6119d40e1bbb028f "
97
+ resolved "https://github.com/angular/dev-infra-private-builds.git#2ac83eb462cb25c46a761d34dec030e360055016 "
98
98
dependencies:
99
99
"@octokit/graphql" "^4.3.1"
100
100
chalk "^2.3.1"
103
103
inquirer "^7.1.0"
104
104
minimatch "^3.0.4"
105
105
multimatch "^4.0.0"
106
+ semver "^6.3.0"
106
107
shelljs "^0.8.3"
107
108
typed-graphqlify "^2.3.0"
108
109
yaml "^1.7.2"
You can’t perform that action at this time.
0 commit comments