| 78 | } |
| 79 | |
| 80 | function registerFormatjsPlugin() { |
| 81 | registerPlugin('formatjs-bazel-workspace', options => { |
| 82 | const typeOptions = |
| 83 | options.type && typeof options.type === 'object' ? options.type : {} |
| 84 | return new BazelNpmWorkspace( |
| 85 | options.github, |
| 86 | options.targetBranch, |
| 87 | options.repositoryConfig, |
| 88 | { |
| 89 | ...options, |
| 90 | ...typeOptions, |
| 91 | merge: typeOptions.merge ?? !options.separatePullRequests, |
| 92 | } |
| 93 | ) |
| 94 | }) |
| 95 | } |
| 96 | |
| 97 | async function loadManifest(github, targetBranch: string) { |
| 98 | return Manifest.fromManifest( |