sn-typescript-util 1.3.14 → 1.3.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sn-typescript-util",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "description": "A TypeScript utility for ServiceNow developers using VS Code",
5
5
  "bin": {
6
6
  "snts": "bin/snts.js"
@@ -9,6 +9,11 @@ async function bumpVersion(releaseType) {
9
9
  return await $`npm version ${releaseType} --no-git-tag-version`;
10
10
  }
11
11
 
12
+ async function cancelOperation() {
13
+ cancel('Operation cancelled.');
14
+ await $`git checkout package.json`;
15
+ }
16
+
12
17
  async function confirmVersion(version: string) {
13
18
  return await confirm({
14
19
  message: `Bump to ${version}?`
@@ -32,8 +37,7 @@ async function doOperation(shouldContinue, version: string) {
32
37
  s.stop('Done.');
33
38
  outro("You're all set!");
34
39
  } else {
35
- cancel('Operation cancelled.');
36
- await $`git checkout package.json`;
40
+ cancelOperation();
37
41
  }
38
42
  }
39
43
 
@@ -68,7 +72,7 @@ function getOptions(): Version[] {
68
72
 
69
73
  async function getVersion() {
70
74
  const file = await getPackageInfo();
71
- return file.version;
75
+ return `v${file.version}`;
72
76
  }
73
77
 
74
78
  (async function init() {