@oneblink/release-cli 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,21 @@ export default async function startUpdateDependents({ cwd }) {
32
32
  return true;
33
33
  },
34
34
  });
35
+ const { isUpdatingTypes } = await enquirer.prompt({
36
+ type: 'select',
37
+ name: 'isUpdatingTypes',
38
+ message: `Would you like to update "@oneblink/types" as well?`,
39
+ choices: [
40
+ {
41
+ message: 'Yes, update @oneblink/types',
42
+ name: 'yes',
43
+ },
44
+ {
45
+ message: 'No! "@oneblink/types" does not need to be updated.',
46
+ name: 'no',
47
+ },
48
+ ],
49
+ });
35
50
  const createPullRequestUrls = [];
36
51
  await enumerateProductRepositories(async ({ productRepository, repositoryWorkingDirectory }) => {
37
52
  const repositoryPlugin = await getRepositoryPlugin({
@@ -73,6 +88,9 @@ export default async function startUpdateDependents({ cwd }) {
73
88
  return;
74
89
  }
75
90
  await executeCommand('git', ['checkout', '-b', jiraTicket], repositoryWorkingDirectory);
91
+ if (isUpdatingTypes === 'yes') {
92
+ await executeCommand('npm', ['install', '--package-lock-only', '-D', '@oneblink/types'], repositoryWorkingDirectory);
93
+ }
76
94
  await executeCommand('npm', [
77
95
  'install',
78
96
  '--package-lock-only',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oneblink/release-cli",
3
3
  "description": "Used internally by OneBlink to release repositories quickly and consistently",
4
- "version": "3.2.0",
4
+ "version": "3.2.1",
5
5
  "author": "OneBlink <developers@oneblink> (https://github.com/oneblink)",
6
6
  "bin": {
7
7
  "oneblink-release": "dist/bin.js"