@leverege/build-tools 2.32.0 → 2.32.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.
@@ -240,6 +240,9 @@ const promptForVersion = async currentVersion => {
240
240
  }, {
241
241
  hint: '(beta release)',
242
242
  value: nextBeta
243
+ }, {
244
+ hint: '(current version)',
245
+ value: currentVersion
243
246
  }, {
244
247
  value: 'custom'
245
248
  }];
@@ -374,14 +377,14 @@ const updateNpmPackageJsonAndLock = async config => {
374
377
  const isWorkspace = await isWorkspacePackage();
375
378
  try {
376
379
  if (!isPackageInRepositoryRoot) {
377
- await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`;
380
+ await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.nothrow();
378
381
  if (isWorkspace) {
379
382
  await (0, _zx.$)`npm install`;
380
383
  } else {
381
384
  await (0, _zx.$)`npm install --prefix ${packagePath}`;
382
385
  }
383
386
  } else {
384
- await (0, _zx.$)`npm version --no-git-tag-version ${version}`;
387
+ await (0, _zx.$)`npm version --no-git-tag-version ${version}`.nothrow();
385
388
  }
386
389
  } catch (err) {
387
390
  console.log(err.stderr || err);
@@ -240,6 +240,9 @@ const promptForVersion = async currentVersion => {
240
240
  }, {
241
241
  hint: '(beta release)',
242
242
  value: nextBeta
243
+ }, {
244
+ hint: '(current version)',
245
+ value: currentVersion
243
246
  }, {
244
247
  value: 'custom'
245
248
  }];
@@ -374,14 +377,14 @@ const updateNpmPackageJsonAndLock = async config => {
374
377
  const isWorkspace = await isWorkspacePackage();
375
378
  try {
376
379
  if (!isPackageInRepositoryRoot) {
377
- await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`;
380
+ await (0, _zx.$)`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.nothrow();
378
381
  if (isWorkspace) {
379
382
  await (0, _zx.$)`npm install`;
380
383
  } else {
381
384
  await (0, _zx.$)`npm install --prefix ${packagePath}`;
382
385
  }
383
386
  } else {
384
- await (0, _zx.$)`npm version --no-git-tag-version ${version}`;
387
+ await (0, _zx.$)`npm version --no-git-tag-version ${version}`.nothrow();
385
388
  }
386
389
  } catch (err) {
387
390
  console.log(err.stderr || err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.32.0",
3
+ "version": "2.32.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -237,6 +237,7 @@ const promptForVersion = async ( currentVersion ) => {
237
237
  { hint : '(minor release)', value : nextMinor },
238
238
  { hint : '(patch release)', value : nextPatch },
239
239
  { hint : '(beta release)', value : nextBeta },
240
+ { hint : '(current version)', value : currentVersion },
240
241
  { value : 'custom' },
241
242
  ]
242
243
  const { version } = await prompt( {
@@ -358,14 +359,14 @@ const updateNpmPackageJsonAndLock = async ( config ) => {
358
359
 
359
360
  try {
360
361
  if ( !isPackageInRepositoryRoot ) {
361
- await $`npm version --no-git-tag-version ${version} --prefix ${packagePath}`
362
+ await $`npm version --no-git-tag-version ${version} --prefix ${packagePath}`.nothrow()
362
363
  if ( isWorkspace ) {
363
364
  await $`npm install`
364
365
  } else {
365
366
  await $`npm install --prefix ${packagePath}`
366
367
  }
367
368
  } else {
368
- await $`npm version --no-git-tag-version ${version}`
369
+ await $`npm version --no-git-tag-version ${version}`.nothrow()
369
370
  }
370
371
  } catch ( err ) {
371
372
  console.log( err.stderr || err )